Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV output ignores command line options for what to extract #1593

Closed
Spidle opened this issue Feb 20, 2024 · 4 comments · Fixed by #1618
Closed

CSV output ignores command line options for what to extract #1593

Spidle opened this issue Feb 20, 2024 · 4 comments · Fixed by #1618
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Spidle
Copy link

Spidle commented Feb 20, 2024

httpx version:

v1.4.0

Current Behavior:

When

Expected Behavior:

When running http with -csv as the output, I should only get the data columns that I've specified in the command line. However, I get everything instead. no problem for one site, but for hundreds, its way too much data.

Steps To Reproduce:

run httpx without csv
echo "yahoo.com" | httpx -title -status-code -tech-detect -follow-redirects -asn -ip -cdn -server -ss

image

run httpx with csv

echo "yahoo.com" | httpx -title -status-code -tech-detect -follow-redirects -asn -ip -cdn -server -ss -csv -o out.csv

image

@Spidle Spidle added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Feb 20, 2024
@ehsandeep
Copy link
Member

@Spidle thanks for flagging this, although default output fields are not created based on CLI input, including body / header as default is unexpected and seems be a bug that we will fixing asap.

@Spidle
Copy link
Author

Spidle commented Mar 6, 2024

@Spidle thanks for flagging this, although default output fields are not created based on CLI input, including body / header as default is unexpected and seems be a bug that we will fixing asap.

Thanks for looking at it! I suppose another alternative would be to omit in the same way that PD's Katana does with -or and -ob.

@ehsandeep
Copy link
Member

@Spidle now excluded as default, can be optionally included with latest release, see https://github.com/projectdiscovery/httpx/releases/tag/v1.6.0

@lovelyjuice
Copy link

The bug still exists in httpx now, when using the -filter-condition parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants