Archived
1
0

Set curlopt to 2, Fixes #4

This commit is contained in:
root
2015-04-20 02:35:25 +00:00
parent 30365e5c4a
commit e42d4e5168

View File

@@ -9,7 +9,7 @@ function login($usr, $pwd){
curl_setopt($ch, CURLOPT_NOBODY, false); curl_setopt($ch, CURLOPT_NOBODY, false);
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
$headers = array( $headers = array(
'Content-Type' => 'application/x-www-form-urlencoded', 'Content-Type' => 'application/x-www-form-urlencoded',