Re: [PHP] cURL and Proxy Servers

2004-09-30 Thread Brian
If you already resolve the proxy before the exec, just don't run the exec if it doesn't resolve, and set the proxy to the ip it resolved to so curl won't try to resolve it again. On Thu, 30 Sep 2004 16:27:52 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I'm using cURL and h

[PHP] cURL and Proxy Servers

2004-09-30 Thread Nick Wilson
Hello everyone, I'm using cURL and have a question about this line (part of a function) curl_setopt($ch, CURLOPT_PROXY, $proxy2use); I know that *after* I curl_exec() i can find out if the proxy resolved or not with curl_errno() (it would return 5) but it seems that if it does fail to resolve,