We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.6.9
When using -vhost-input, httpx forces HTTPS scheme even when HTTP is specified in the input URLs. This happens even with -no-fallback-scheme.
httpx -json -u "http://www.example.com" -silent -no-fallback-scheme | jq { "timestamp": "2024-12-03T17:08:15.874979843+07:00", "port": "80", "url": "http://www.example.com", "input": "http://www.example.com", "title": "Example Domain", "scheme": "http", "webserver": "ECAcc (lac/558D)", "content_type": "text/html", "method": "GET", "host": "93.184.215.14", "path": "/", "time": "515.297047ms", "a": [ "93.184.215.14" ], "aaaa": [ "2606:2800:21f:cb07:6820:80da:af6b:8b2c" ], "tech": [ "Azure", "Azure CDN" ], "words": 298, "lines": 46, "status_code": 200, "content_length": 1256, "failed": false, "knowledgebase": { "PageType": "nonerror", "pHash": 0 }, "resolvers": [ "1.0.0.1:53", "8.8.8.8:53" ] }
echo '"http://www.example2.org",http://www.example.com' | httpx -silent -vhost-input -json -no-fallback-scheme | jq { "timestamp": "2024-12-03T17:09:04.854977383+07:00", "port": "443", "url": "https://www.example.com", "input": "\"http://www.example2.org\",http://www.example.com", "title": "404 - Not Found", "scheme": "https", "webserver": "ECAcc (lac/55D2)", "content_type": "text/html", "method": "GET", "host": "93.184.215.14", "path": "/", "time": "2.565392004s", "a": [ "93.184.215.14" ], "aaaa": [ "2606:2800:21f:cb07:6820:80da:af6b:8b2c" ], "tech": [ "Azure", "Azure CDN" ], "words": 27, "lines": 11, "status_code": 404, "content_length": 345, "failed": false, "knowledgebase": { "PageType": "error", "pHash": 0 }, "resolvers": [ "1.0.0.1:53", "8.8.8.8:53" ] }
The scheme should be the same for both input methods, taken from the input URL.
echo '"http://www.example2.org",http://www.example.com' | httpx -silent -vhost-input -json -no-fallback-scheme
Cheers!
The text was updated successfully, but these errors were encountered:
Hey thanks for the amazing quick response!
I tested using go install github.com/projectdiscovery/httpx/cmd/httpx@ff00cee
go install github.com/projectdiscovery/httpx/cmd/httpx@ff00cee
Unfortunately it doesn't seem to respond at all with -vhost-input now..
echo '"http://www.example2.org",http://www.example.com' | httpx -silent -vhost-input -json -no-fallback-scheme <no output>
Sorry, something went wrong.
dogancanbakir
Successfully merging a pull request may close this issue.
httpx version:
v1.6.9
Current Behavior:
When using -vhost-input, httpx forces HTTPS scheme even when HTTP is specified in the input URLs. This happens even with -no-fallback-scheme.
Not using -vhost-input, scheme is http (good)
Using vhost-input, scheme is always https (bad)
Expected Behavior:
The scheme should be the same for both input methods, taken from the input URL.
Steps To Reproduce:
echo '"http://www.example2.org",http://www.example.com' | httpx -silent -vhost-input -json -no-fallback-scheme
Cheers!
The text was updated successfully, but these errors were encountered: