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

curl-and-php

Curl and Authorize.net

From: Erik Stieringer <erik_at_grossmontdesigns.com>
Date: Mon, 05 May 2003 07:47:40 -0700

Dear Members,

I have been trying to get my PHP script to communicate with Authorize.net.
It does not appear to send any data, as I do not get an emailed receipt
back.

I have used both of these forms of code in my PHP scripts:

exec("$curl -d \"$data\" $authnet_url", $return_string);

(where $curl = path to curl, $data = information to post, & $authnet_url =
URL to post to)

& I have used:

$ch=curl_init();
curl_setopt($ch, CURLOPT_URL,
"https://secure.authorize.net/gateway/transact.dll:443");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_REFERER, $ref);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

Neither has worked.

---
This information is from phpinfo()
PHP Version 4.3.0
CURL support     enabled
CURL Information     libcurl/7.10.1 OpenSSL/0.9.6e ipv6 zlib/1.1.3
---
The only thing I can figure is that ipv6 does not work with PHP.  (I have
read that somewhere.)  If that is the general consensus of the members here,
I will recompile cURL without ipv6.  Just want to know what others think
before I mess around with the server any more than I have to.
Only other interesting note:  When I enter ³curl-config ‹version² at the
command line, I actually get back ³libcurl 7.7.2², not the 7.10.1 as shown
in the phpinfo.  I understand that for PHP v. 4.3.0, I do need cURL v. 7.9.8
or better.  Could there be some problem with this?
Thanks in advance,
Erik Stieringer
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-05-05