sagebind / isahc

The practical HTTP client that is fun to use.
https://docs.rs/isahc
MIT License
705 stars 62 forks source link

Let http proxy resolve hostname? #453

Closed SuperKenVery closed 1 month ago

SuperKenVery commented 1 month ago

Currently it seems that isahc resolved the domain before sending request to http proxy server.

I think we should directly send the hostname to the proxy, unresolved, as the current host might be unable to access DNS servers. That's what curl does.

On my machine, curl accesses a website just fine but isahc reports name resolution failure. (Yeah my network cannot access public DNS servers)