CURL PHP: Connect to a Secure Server
Saturday, February 20, 2010 23:04Posted in category CURL PHP Examples
No Comments
If you want to connect to a secure server for posting info/reading info, you need to make cURL with the openSSL options. Then the sequence is nearly identical to the previous example (except http_S_://, and possibly add the useragent):
<?php curl_setopt($ch, CURLOPT_URL,"https://example.com"); //some sites only accept your request if your browser looks legit, so send a useragent profile... curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); ?>
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.


