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

curl-and-php

CURL - Error code 768

From: Kirk Cerny <kirksemail_at_gmail.com>
Date: Thu, 21 Oct 2004 09:52:19 -0600

Does any one know what error code 768 means?
I am attempting to use curl to get fedex prices.
I have used curl successfully before.

I can not find any documentation on the error number.

$ch = curl_init ("http://www.fedex.com");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$post_string" );
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_REFERER, "http://fedex.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
echo $data;

 $ans = curl_error ($ch);
 $num = curl_errno ($ch);
 echo ("<p> ERROR: $ans : - num: $num </p>");
 curl_close ($ch);
Received on 2004-10-21