httpx
httpx copied to clipboard
Ignoring the http path when using the p switch
httpx version:
v1.2.9
Current Behavior:
when use -p http:80 switch, httpx ignore http path and send request to /
echo http://127.0.0.1/NO-PATH/ | httpx -duc -sc -debug-req -nfs -p http:80
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Dumped HTTP request for http://127.0.0.1:80
GET / HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/29.0
Accept-Charset: utf-8
Accept-Encoding: gzip
http://127.0.0.1 [200]
Expected Behavior:
this is without use -p http:80 switch, in this command httpx sends the request correctly /NO-PATH/
echo http://127.0.0.1/NO-PATH/ | httpx -duc -sc -debug-req -nfs
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Dumped HTTP request for http://127.0.0.1/NO-PATH/
GET /NO-PATH/ HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:28.0) Gecko/20100101 Firefox/28.0
Accept-Charset: utf-8
Accept-Encoding: gzip
http://127.0.0.1/NO-PATH/ [404]
Steps To Reproduce:
Anything else:

