I am using PHP 4.06 compiled --with curl & OPENSSL is installed and working. My phpinfo says cURL is enabled and I have libcurl 7.8 (SSL 0.9.5). The following script works. Is this safe?
<?php
$url = "https://secure.authorize.net/gateway/transact.dll?x_Login=testdrive&x_Version=3.0&x_ADC_Delimited_Data=TRUE&x_ADC_URL=FALSE&x_Type=AUTH_ONLY&x_Test_Request=TRUE&x_Method=CC&x_First_Name=John&x_Last_Name=Doe&x_Amount=49.95&x_Card_Num=4007000000027&x_Exp_Date=11/2001";
$ch = curl_init($url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
curl_close ($ch);
///echoing out for debugging below
echo("$result");
?>
Once I get the $result, I can explode it and do what I want with it. This was easy, but when it is easy, usually something is wrong! I have tried some of the example scripts in this forum such as http://www.phpbuilder.com/forum/archives/2/2000/12/4/117506 & others, but with no success. Thanks... Ron