cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

proxy connections

From: RtL <rtl_dex_at_yahoo.com>
Date: Mon, 24 Oct 2005 11:31:08 -0700 (PDT)

Can anyone please help me with conecting trought
proxys?

I tried this code:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://google.com");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curL_setopt($ch, CURLOPT_PROXY, "62.15.135.82");
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
curl_setopt($ch, CURLOPT_PROXYPORT, "8080");
echo ":";
$page = curl_exec($ch);
echo $page;
curl_close($ch);
echo ":";

and i got only:"
:
"
so it is clear that it stops at curl_exec($ch); but i
dont know why...
Please help me. Thx

        
                
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-10-24