2
Test curl_error() & curl_errno() function with problematic proxy
4
TestFest 2009 - AFUP - Perrick Penet <perrick@noparking.net>
6
<?php if (!extension_loaded("curl")) print "skip"; ?>
10
$url = "http://www.example.org";
12
curl_setopt($ch, CURLOPT_PROXY, uniqid().":".uniqid());
13
curl_setopt($ch, CURLOPT_URL, $url);
16
var_dump(curl_error($ch));
17
var_dump(curl_errno($ch));
23
%unicode|string%(%d) "%r(Couldn't resolve proxy|Could not resolve proxy:)%r %s"