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)
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)