note 75458 added to ref.curl
| From: | pyroevi at yahoo dot com | Date: | Wed, 30 May 2007 23:58:11 +0000 |
| Subject: | note 75458 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127044@lists.php.net to get a copy of this message | ||
Earlier I posted about using php to interface with an authorize.net gateway. I accidentally made a
mistake in my code.
Instead of:
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($AuthNetConn, CURLOPT_CAINFO, "path:/ca-bundle.crt");
It should be
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($connection, CURLOPT_CAINFO, "path:/ca-bundle.crt");
Whatever you call that first connection variable, it needs to be the same in both statements. Sorry
about that.
----
Server IP: 69.39.81.135
Probable Submitter: 136.165.12.33
----
Manual Page -- http://www.php.net/manual/en/ref.curl.php
Edit -- https://master.php.net/note/edit/75458
Del: integrated -- https://master.php.net/note/delete/75458/integrated
Del: useless -- https://master.php.net/note/delete/75458/useless
Del: bad code -- https://master.php.net/note/delete/75458/bad+code
Del: spam -- https://master.php.net/note/delete/75458/spam
Del: non-english -- https://master.php.net/note/delete/75458/non-english
Del: in docs -- https://master.php.net/note/delete/75458/in+docs
Del: other reasons-- https://master.php.net/note/delete/75458
Reject -- https://master.php.net/note/reject/75458
Search -- https://master.php.net/manage/user-notes.php