2010-03-16 5 views
0

항상 : https://www.google.com/accounts/o8/udGoogle 엔드 포인트가 항상 동일한 이유는 무엇입니까?

나는 워드 프레스 openid를 얻었습니다. 그래서 내가 생각 그냥 검색 단계 얻었다 일부 probelms .. 항상 null

<?php $ch = curl_init(); 



$url = 'https://www.google.com/accounts/o8/id'; 
$url = $url.'?'; 
$url = $url.'openid.mode=checkid_setup'; 
$url = $url.'&openid.ns=http://specs.openid.net/auth/2.0'; 
$url = $url.'&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select'; 
$url = $url.'&openid.identity=http://specs.openid.net/auth/2.0/identifier_select'; 
$url = $url.'&openid.return_to='.site_url().'/user/openid/login_callback'; 
$url = $url.'&openid.realm=http://www.example.com/'; 


// set url 
curl_setopt($ch, CURLOPT_URL, $url); 

//return the transfer as a string 
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($ch, CURLOPT_HTTPHEADER,array("Accept: */*")); 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 

// $output contains the output string 
$xdr = curl_exec($ch); 
if (!$xdr) { 
    die(curl_error($ch)); 
} 
// close curl resource to free up system resources 
curl_close($ch); 
$xml = new SimpleXMLElement($xdr); 

$url = $xml->XRD->Service->URI; 
$request = $connection->begin($url); 

$ 요청 ...

답변

0

질문에 올바른 끝점 URL (/ud으로 끝나는 URL)이 있지만 예제 코드가 끝점 URL이 아닌 식별자 URL (/id)으로 요청을 보내고 있습니다.

관련 문제