The server I'm on has php compiled with curl and with ssl, so that's not an issue. I cannot seem to connect to authorize.net, however, using https://. If I use http://, it works fine. Below is the code I'm using. I know someone out there has tackled this problem before and I'm hoping you can tell me where my code is off, or share what you do to make it work. Any help will be appreciated.
$ch = curl_init ("https://secure.authorize.net/gateway/transact.dll"); # Initialize the session curl_setopt($ch, CURLOPT_HEADER, 1); # Make the headers part of the output curl_setopt($ch, CURLOPT_FILE, $return_data); # $return_data is a file pointer curl_setopt($ch, CURLOPT_STDERR, $error); # $error is a file pointer $post_fields = "x_Login=mylogon&x_ADC_URL=False&x_ADC_Delim_Data=True&x_Amount=$grand_total &x_Card_Num=$cc_num&x_Exp_Date=$month/$year"; curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_fields); $result = curl_exec ($ch); curl_close ($ch); It's not that I'm getting goofy data back - I just get nothing at all back. Nada. No connection, in other words. Do I need to specify the path to my SSL Cert with CURLOPT_SSLCERT? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php