I bet that your copy of CURL was built without SSL support, despite the fact
that PHP has SSL compiled in.

To test this, see if you have the "curl" shell command installed & try

        curl https://secure.authorize.net/gateway/transact.dll

It will probably say something like

        curl built without SSL support

If this is what you get, let me know & we'll take it from there.

> -----Original Message-----
> From: Mike Mannakee [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 20:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] CURLing to authorize.net
>
>
> 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=$g
> rand_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
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to