projectdiscovery / httpx

httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
https://docs.projectdiscovery.io/tools/httpx
MIT License
7.53k stars 822 forks source link

do not trim protocol #1790

Closed dogancanbakir closed 3 months ago

dogancanbakir commented 3 months ago

Closes #1770

$ go run . -u http://127.0.0.1/1  -nf -v

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.5 (latest)
[DBG] Failed 'http://127.0.0.1/1': Get "http://127.0.0.1/1": errKind=network-permanent-error [address=127.0.0.1:80] port closed or filtered; connection refused
[DBG] Failed 'https://127.0.0.1/1': Get "https://127.0.0.1/1": errKind=network-permanent-error [address=127.0.0.1:443] port closed or filtered; connection refused

$ go run . -u http://127.0.0.1/1  -nfs -v

    __    __  __       _  __
   / /_  / /_/ /_____ | |/ /
  / __ \/ __/ __/ __ \|   /
 / / / / /_/ /_/ /_/ /   |
/_/ /_/\__/\__/ .___/_/|_|
             /_/

                projectdiscovery.io

[INF] Current httpx version v1.6.5 (latest)
[DBG] Failed 'http://127.0.0.1/1': Get "http://127.0.0.1/1": errKind=network-permanent-error [address=127.0.0.1:80] port closed or filtered; connection refused