if I try to get a Session Token from google the server doesn't respond.. The code that I use is this:
$ch = curl_init("https://www.google.com/accounts/AuthSubSessionToken");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: AuthSub token="' . trim($token) . '"'
));
$result = curl_exec($ch);
curl_close($ch);
$splitStr = split("=", $result);
return trim($splitStr[1]);
but the server doesn't respond..No error code..nothing of nothing.. :( The token that I take from https://www.google.com/accounts/AuthSubRequest is correct because I can use it as Single-use token..