@ 2015-12-19T17:57:45Z <?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_VERBOSE => 1,
CURLOPT_CERTINFO => 0,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FOLLOWLOCATION => 1,
// CURLOPT_CAPATH => './',
// CURLOPT_SSL_VERIFYHOST => 0,
// CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_FOLLOWLOCATION => 1,
CURLOPT_BINARYTRANSFER => 1,
// CURLOPT_REFERER => 'https://agenciavirtual.light.com.br/',
// CURLOPT_SSLVERSION => 2,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => array(
// 'Connection: keep-alive',
'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0',
// 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
// 'Accept-Encoding: gzip, deflate',
// 'Cache-Control: max-age=0'
),
CURLOPT_URL => 'https://agenciavirtual.light.com.br/LASView/captcha.jpg'
// CURLOPT_URL => 'https://mail.google.com/mail/u/0/#inbox'
));
$resp = curl_exec($curl);
echo "Error:\n";
var_dump(curl_error($curl));
echo "curl_getinfo:\n";
var_dump(curl_getinfo($curl, CURLINFO_HTTP_CODE));
// var_dump(curl_getinfo($curl));
echo "return of curl_exec:\n";
var_dump($resp);
// Close request to clear up some resources
curl_close($curl);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.27 , 8.2.0 - 8.2.17 , 8.3.0 - 8.3.4 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/D50TS:3
Stack trace:
#0 {main}
thrown in /in/D50TS on line 3
Process exited with code 255 . Output for 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 Fatal error: Call to undefined function curl_init() in /in/D50TS on line 3
Process exited with code 255 . preferences:dark mode live preview
206.47 ms | 401 KiB | 208 Q