-
Describe the bug HTTPX fails silently if -random-agent is the first argument Environment details
I'm using the download from here; Error details This command works echo 'google.com' | httpx -H 'User-Agent: asdf' -include-response -json -verbose -debug -random-agent false Output:
This fails silently with no hint as to why echo 'google.com' | httpx -random-agent false -H 'User-Agent: asdf' -include-response -json -verbose -debug Output:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@njbooher I guess the right command to use would be but I can see |
Beta Was this translation helpful? Give feedback.
-
Ok, I'll go ahead and remove |
Beta Was this translation helpful? Give feedback.
@njbooher I guess the right command to use would be
echo 'google.com' | httpx -H 'User-Agent: asdf' -include-response -json
, if you are setting customUser-Agent
using-H
flag, the random UA will be disabled internally, so using-random-agent false
is not expected.but I can see
-random-agent
might cause confusion and as it's enabled as default, we will be removing this CLI flag in future updates.