-
Notifications
You must be signed in to change notification settings - Fork 991
Labels
Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Description
httpx version:
latest
Current Behavior:
When httpx falls back from HTTPS to HTTP on targets with explicit port 443, it keeps the same port, causing 400 The plain HTTP request was sent to HTTPS port errors, i.e resulted as valid / open host but it's actually not.
Expected Behavior:
Before:
$ echo "1.117.60.202:443" | httpx -probe
http://1.117.60.202:443 [FAILED] # 400 error - HTTP to HTTPS port
After:
$ echo "1.117.60.202:443" | httpx -probe
http://1.117.60.202:80 [SUCCESS] # Falls back to correct port
Steps To Reproduce:
echo 1.117.60.202:443 | httpx -silent -title
http://1.117.60.202:443 [400 The plain HTTP request was sent to HTTPS port]
Metadata
Metadata
Assignees
Labels
Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.