Skip to content

Commit

Permalink
Allowed sites with self-signed certs to be called by urlrequest. See …
Browse files Browse the repository at this point in the history
…JWL-5
  • Loading branch information
bentasker committed Dec 1, 2014
1 parent 98734ec commit 264b981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actions/urlrequest.action.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private function placeRequest($url){
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_HTTPHEADER, $this->config->headers);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Set so that self-signed certs can be used on the target domain if needed
$data = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
Expand Down

0 comments on commit 264b981

Please sign in to comment.