httpx icon indicating copy to clipboard operation
httpx copied to clipboard

-srd misses storing responses on same host, but different schemes (HTTP/HTTPS), on default ports (80/443)

Open intrd opened this issue 11 months ago • 1 comments

httpx version:

1.7.0

Current Behavior:

-srd option misses storing responses when the same host responds differently over different default schemes (HTTP vs HTTPS).

Steps To Reproduce:

  1. Run echo hackerone.com|httpx -status-code -nf -srd out -silent, this will probe http and https schemes @ hackerone.com and store responses at out/ folder;
  2. index.txt confirms two probes, two diff responses;
  3. Only 1 response stored, because it replaced the first response. (diff scheme, but same srdfolder/SHA1_filename.txt).

Image

..tested individually, same behavior observed:

Image

intrd avatar Apr 30 '25 18:04 intrd

The same issue occurs with -ss, the first screenshot file is overwritten due to the identical SHA1 filename, and the corresponding TXT response is also affected.

Image

intrd avatar Apr 30 '25 18:04 intrd

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Aug 31 '25 00:08 github-actions[bot]

This issue has been automatically closed due to inactivity. If you think this is a mistake or would like to continue the discussion, please comment or feel free to reopen it.

github-actions[bot] avatar Sep 14 '25 00:09 github-actions[bot]