IIS PHP cURL Authorize.net SSL

I’ve been working on a checkout system for a client site… Everything works well on our local and dev servers, but when we launched to the production box, which happens to be IIS, the checkout bombs.

After digging, cursing, googling, complaining to the ISP, etc… I finally found out that apparently, IIS windows servers do not verify the connection… In fact it times out if you try to.

So, im posting this to help save someone else hours of frustration…  In your cURL call to an https url, you just need to add the following

curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); //

Personalized User Vanity Url’s in Codeigniter

Be Sociable, Share!

One comment

  • June 11, 2012 - 11:22 am | Permalink

    Thanks so much! Came in handy.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    * Copy This Password *

    * Type Or Paste Password Here *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>