PHP Curl Post Windows IIS Server

Having problems trying to get your PHP curl post request working on a windows IIS server?

Is the URL you are trying to post to have an SSL certificate? If so below is a quick fix on how to get the post to work.

Quick Fix

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

Correct Fix

The proper fix involves setting the 


 parameter. This is used to point towards a CA certificate that cURL should trust.

*All code example are open and everyone is free to use.

Take a look at our other php curl examples Click Here