Skip to content

Commit

Permalink
allow self-signed certs on the test
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Nov 18, 2015
1 parent 747ed68 commit da528f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phpunit/restapi.php
Expand Up @@ -60,7 +60,8 @@ private function callApi($command, $post_params, $decode = true)
curl_setopt($c, CURLOPT_COOKIEFILE, $this->tmpPath.'/phpList_RESTAPI_cookiejar.txt');
curl_setopt($c, CURLOPT_COOKIEJAR, $this->tmpPath.'/phpList_RESTAPI_cookiejar.txt');
curl_setopt($c, CURLOPT_HTTPHEADER, array('Connection: Keep-Alive', 'Keep-Alive: 60'));

curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, false);
// Execute the call
$result = curl_exec($c);

Expand Down

0 comments on commit da528f4

Please sign in to comment.