You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Host header overwritten in unsafe mode when using -target with raw requests #2296
When using -rr (raw request) together with -target in unsafe mode, httpx overwrites the Host header from the raw request file with the target host. This causes the original Host header specified in the request file to be ignored.
Expected Behavior:
The Host header from the raw request file should be preserved, even when -target and -unsafe are used.
Steps To Reproduce:
Create a raw request file raw.txt:
GET / HTTP/1.1Host: example.com
Run httpx with:
httpx -rr raw.txt -target test.com -unsafe -debug
Observe that the Host header is changed to test.com instead of staying as example.com.
Activity