How to get response from secure site (https) using curl in php?
Posted
by Chirag
on Stack Overflow
See other posts from Stack Overflow
or by Chirag
Published on 2010-05-17T05:37:57Z
Indexed on
2010/05/17
5:40 UTC
Read the original article
Hit count: 213
curl
Hi,
i have used below code for reading the response from HTTTPS secured site using curl but it shows an error like 'Page can't be displayed"
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true);
curl_setopt($ch, CURLOPT_URL, $gatewayURI);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($curl_ch, CURLOPT_CAINFO, dirname(__FILE__)."/tempcert.pem");
any help??
© Stack Overflow or respective owner