cUrl version
| From: | Mark Rees | Date: | Fri, 01 Jul 2005 09:52:50 +0000 |
| Subject: | cUrl version | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26175@lists.php.net to get a copy of this message | ||
Hello
Win2k, Apache 2.0, PHP5
I need to make an http request from behind an ISA proxy server. I am trying
to use cURL for this, as it seems to offer the most configurable options
with relation to a proxy server. This is the code I am using:
$ch=curl_init();
curl_setopt ($ch, CURLOPT_URL, 'http://www.google.com/');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch,CURLOPT_HTTP_VERSION,'CURL_HTTP_VERSION_1_1');
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch,CURLOPT_PROXY,'10.0.0.8:8080');
curl_setopt($ch,CURLOPT_PROXYUSERPWD,'abc:123');
$ret = curl_exec($ch);
It is failing as I am getting a 407 from the proxy server. This is
apparently a known issue:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1188280&group_i
d=976
I believe that this is fixed in the latest version of curl, which is 7.14.0.
However, as far as I know, I would need a new version of php_curl.dll in
order to use this. I do not understand how to build this myself, or even
what I would need in order to do this, and am not sure that I have the
necessary software in any case. Are there any tutorials out there on how to
do this?
Thanks in advance
Mark