Permalink
Browse files

Merge branch 'master' of git@github.com:OneHourTranslation/PHP-Client…

…-Library
  • Loading branch information...
2 parents ae0abc6 + 1b68c20 commit 572bf4d512f66973e3719f0e772e1d0fff92e820 Oren yagev committed Aug 29, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/OHTAPI.php
View
@@ -260,7 +260,10 @@ protected function request($requestURL , $method='get' , $params=array()){
}
$opts[CURLOPT_RETURNTRANSFER] = TRUE;
//$opts[CURLOPT_HEADER] = TRUE;
-
+ if (strstr(strtoupper(PHP_OS) , 'WIN')){
+ $opts[CURLOPT_SSL_VERIFYPEER] = FALSE;
+ }
+
curl_setopt_array($ch , $opts);
$result = curl_exec($ch);

0 comments on commit 572bf4d

Please sign in to comment.