Update: Forgot to mention I was using a http proxy, and as I found out ( http://curl.haxx.se/mail/lib-2006-01/0133.html) it is expected behavior, as the name resolution is done by the proxy server.
A feature that could allow local dns would be nice: for example: 1. set url "http://site.com/page" and dns "8.8.8.8" 2. curl would first resolve the site.com to 123.123.123.123 3. forward the url to the proxy as "http://123.123.123.123/page" and with the request-url set to "http://site.com/page" (dose http proxy support this? could the CONNECT command be used if available?) as with shared hosting an IP is not enough to get the requested domain page. Is this possible, if not as a feature at least as a workaround? I've found that I could use CURLOPT_RESOLVE to manually set the name resolved, but I guess as the name resolution is done by the proxy, curl doesn't get a chance to do it's magic. So in my case am I stuck using the proxy's dns?. On Mon, Nov 25, 2013 at 9:35 PM, Stefan Rogin <[email protected]>wrote: > Hi all, > > I've updated to the latest version of curl and c-ares, and it's the same > output. > > More interesting is that a url like 'someword' returns error 22: http > returned error, and I was expecting a name resolution error. Is this > normal? Or did I missconfigure something? > În data de 25.11.2013 15:51, "Stefan Rogin" <[email protected]> > a scris: > > On Mon, Nov 25, 2013 at 3:28 PM, Cédric Deltheil <[email protected]> >> wrote: >> >>> version of c-ares >> >> >> It was built with c-ares-1.9.1 by me and I used --enable-ares. >> >> Is there any other way I can figure out if it's turned off ? >> >> >> -- >> >> *Stefan Rogin* >> Web designer & developer, Software Developer, Data Analyst >> Tel: +40.769.622.178 >> > -- *Stefan Rogin* Web designer & developer, Software Developer, Data Analyst Tel: +40.769.622.178
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
