curl-library
Using Curl w/ Authorize.net
Date: Fri, 04 Feb 2005 11:06:41 -0600
Right now, the PHP accesses curl this way.
$ch = curl_init("$AUTHNET_URL");
// set some options
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$data");
// post the data and read the result
$return_string = curl_exec($ch);
$verbose_string = $return_string;
// close the curl session
curl_close ($ch);
The problem I'm having is that CURLOPT_POST, CURLOPT_RETURNTRANSFER, and
CURLOPT_POSTFIELDS run a compiling error, and it looks like the function do
not exist. Is there another way to do this with C? Should I just try to do
it in command prompt (exec)?
Jonathan
Received on 2005-02-04