Skip to content

Commit

Permalink
Disabled the SSL Peer verification as local certificates are very com…
Browse files Browse the repository at this point in the history
…mon whilst developing APIs.
  • Loading branch information
David Coallier committed Aug 11, 2011
1 parent dc451cb commit e1f31d8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -98,6 +98,10 @@ public function ajaxAction()
$request_url = 'http' . ($ssl == true ? 's' : '') . '://' . $url . '/' . $query_uri;

$request = new HTTP_Request2($request_url, $newMethod);
$request->setConfig(array(
'ssl_verify_peer' => false,
'ssl_verify_host' => false,
));

if ($email && $pass) {
$request->setAuth($email, $pass, HTTP_Request2::AUTH_DIGEST);
Expand Down

0 comments on commit e1f31d8

Please sign in to comment.