static protected function curl ( $uri )
	{
		$ch = curl_init();

		curl_setopt($ch, CURLOPT_HTTPHEADER,	 array('Accept: application/xrds+xml, */*;q=0.1'));
		curl_setopt($ch, CURLOPT_USERAGENT,		 'anyMeta/OAuth 1.0 - (OAuth Discovery $LastChangedRevision: 45 $)');
		curl_setopt($ch, CURLOPT_URL, 			 $uri);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		curl_setopt($ch, CURLOPT_HEADER, 		 true);
		curl_setopt($ch, CURLOPT_TIMEOUT, 		 30);

		$txt = curl_exec($ch);
		curl_close($ch);

		// Tell the logger what we requested and what we received back
		$data = "GET $uri";
		OAuthRequestLogger::setSent($data, "");
		OAuthRequestLogger::setReceived($txt);

		return $txt;
	}
static protected function curl ( $uri )
	{
		$ch = curl_init();

		curl_setopt($ch, CURLOPT_HTTPHEADER,	 array('Accept: application/xrds+xml, */*;q=0.1'));
		curl_setopt($ch, CURLOPT_USERAGENT,		 'anyMeta/OAuth 1.0 - (OAuth Discovery $LastChangedRevision: 45 $)');
		curl_setopt($ch, CURLOPT_URL, 			 $uri);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		curl_setopt($ch, CURLOPT_HEADER, 		 true);
		curl_setopt($ch, CURLOPT_TIMEOUT, 		 30);

		$txt = curl_exec($ch);
		curl_close($ch);

		// Tell the logger what we requested and what we received back
		$data = "GET $uri";
		OAuthRequestLogger::setSent($data, "");
		OAuthRequestLogger::setReceived($txt);

		return $txt;
	}
static protected function curl ( $ uri ) { $ ch = curl_init ( ) ; curl_setopt ( $ ch , CURLOPT_HTTPHEADER , array ( 'Accept: application/xrds+xml, */*;q=0.1' ) ) ; curl_setopt ( $ ch , CURLOPT_USERAGENT , 'anyMeta/OAuth 1.0 - (OAuth Discovery $LastChangedRevision: 45 $)' ) ; curl_setopt ( $ ch , CURLOPT_URL , $ uri ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ ch , CURLOPT_HEADER , true ) ; curl_setopt ( $ ch , CURLOPT_TIMEOUT , 30 ) ; $ txt = curl_exec ( $ ch ) ; curl_close ( $ ch ) ; // Tell the logger what we requested and what we received back $ data = "GET $uri" ; OAuthRequestLogger :: setSent ( $ data , "" ) ; OAuthRequestLogger :: setReceived ( $ txt ) ; return $ txt ; }
Try to fetch an XRDS file at the given location.  Sends an accept header preferring the xrds file.

@param string uri
@return array	(head,body), false on an error
Try to fetch an XRDS file at the given location . Sends an accept header preferring the xrds file .