Skip to content

Commit

Permalink
SAK-29688 - Work around later cURL distos having no default certs
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Jul 14, 2015
1 parent 7ea343e commit a244335
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,8 @@ function get_curl($url, $header) {

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
// CURL now ships with no certificates so they all fail
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

// Make sure that the header is an array and pitch white space
$LastHeadersSent = trim($header);
Expand Down Expand Up @@ -1074,6 +1076,8 @@ function body_curl($url, $method, $body, $header) {

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
// CURL now ships with no certificates so they all fail
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

// Make sure that the header is an array and pitch white space
$LastHeadersSent = trim($header);
Expand Down

0 comments on commit a244335

Please sign in to comment.