httpx icon indicating copy to clipboard operation
httpx copied to clipboard

silent and debug-[req|resp] flags should be incompatible

Open jimen0 opened this issue 3 years ago • 0 comments

httpx version:

Current dev HEAD.

Current Behavior:

httpx -silent and -debug-[req|resp] flags can be used at the same time. Doing it simply doesn't output the debug information.

Expected Behavior:

Since these flags are incompatible, httpx should report a descriptive error and abort the execution.

Steps To Reproduce:

Same applies to the -debug flag.

:~/research/projectdiscovery/httpx ‹dev›$ echo "https://www.google.com/.well-known/security.txt" | ./httpx -silent -debug-req
https://www.google.com/.well-known/security.txt
:~/research/projectdiscovery/httpx ‹dev›$ echo "https://www.google.com/.well-known/security.txt" | ./httpx -silent -debug-resp
https://www.google.com/.well-known/security.txt

Anything else:

N/A

jimen0 avatar Aug 24 '22 09:08 jimen0