|
Posted by "Mark Rees" on 06/30/05 19:27
UPDATE: I think it is a bug in cURL, according to this link (I am using an
ISA proxy).
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1188280&group_i
d=976
So all I need to do is install the latest version of cURL then. I am really
struggling with this - I don't have a good understanding of how PHP and cURL
interact. I already have the necessary dlls on my machine :
php_curl.dll
libeay.dll
ssleay.dll
But what can I download from
http://curl.haxx.se/download.html
I don't see any of those files there, and the windows package includes only
curl.exe - where does that fit in?
The readme files in the package I did download don't really help either:
http://curl.haxx.se/dlwiz/?type=*&os=Win32&flav=-&ver=2000%2FXP
Please help if you can
Mark
""Mark Rees"" <mrees@itsagoodprice.com> wrote in message
news:C9.4C.29969.03314C24@pb1.pair.com...
> Hello
>
> This code gives me a 407 Proxy Authentication Required message. Can
anyone
> see what is missing? The username and password are definitely correct, as
> are the proxy IP and port.
>
> Win2k. php 5.0.4
>
> $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);
>
> Thanks in advance
>
> Mark
Navigation:
[Reply to this message]
|