0
curl 및 Google 보이스 클래스를 사용하여 Google 보이스에 로그인하여 https://github.com/aaronpk/Google-Voice-PHP-API에 SMS를 보내려고합니다.PHP와 컬로 Google 음성에 로그인 할 때 쿠키 문제가 발생합니까?
다음 오류가 나타납니다. "브라우저의 쿠키 기능이 해제되어 있습니다. 전원을 켜주세요. "
로그인시 문제의 근본은 다음 코드에 [?] :
curl_setopt($this->_ch, CURLOPT_URL, 'https://www.google.com/accounts/ServiceLoginAuth?service=grandcentral');
curl_setopt($this->_ch, CURLOPT_POST, TRUE);
curl_setopt($this->_ch, CURLOPT_COOKIEFILE, $this->_cookieFile);
curl_setopt($this->_ch, CURLOPT_POSTFIELDS, array(
'Email' => $this->_login,
'Passwd' => $this->_pass,
'continue' => 'https://www.google.com/voice/account/signin',
'service' => 'grandcentral',
'GALX' => $GALX
));
$html = curl_exec($this->_ch);
사람이 날이 무엇을해야하는지에 대한 조언을 할 수 있습니까? 사전에
감사합니다,
KC
'CURLOPT_COOKIEJAR'도 같은 파일로 정의하면 어떻게됩니까? – Wrikken
Wrekken을 찾아 주셔서 감사합니다. '\t curl_setopt ($ this -> _ ch, CURLOPT_COOKIEJAR, $ this -> _ cookieFile);'를 추가했지만 아무 것도 변경되지 않았습니다. 난 여전히 동일한 오류 –
흠, 그리고 당신은 분명히 클래스의 동일한 인스턴스를 사용하고있어? (anonmized) 요청 및 응답 헤더를 검사/제공 할 수 있습니까? – Wrikken