src/Net/HTTP/Reader.php
public function get( $url, $headers = array(), $curlOptions = array() )
	{
		$curl	= clone( $this->curl );
		$curl->setOption( CURLOPT_URL, $url );
		if( $headers )
		{
			if( $headers instanceof Net_HTTP_Header_Section )
				$headers	= $headers->toArray();
			$curlOptions[CURLOPT_HTTPHEADER]	= $headers;
		}
		$this->applyCurlOptions( $curl, $curlOptions );
		$response		= $curl->exec( TRUE, FALSE );
		$this->curlInfo	= $curl->getInfo();
		$response		= Net_HTTP_Response_Parser::fromString( $response );
/*		$encodings	= $response->headers->getField( 'content-encoding' );
		while( $encoding = array_pop( $encodings ) )
		{
			$decompressor	= new Net_HTTP_Response_Decompressor;
			$type			= $encoding->getValue();
			$body			= $decompressor->decompressString( $response->getBody(), $type );
		}
		$response->setBody( $body );*/
		return $response;
	}
public function get( $url, $headers = array(), $curlOptions = array() )
	{
		$curl	= clone( $this->curl );
		$curl->setOption( CURLOPT_URL, $url );
		if( $headers )
		{
			if( $headers instanceof Net_HTTP_Header_Section )
				$headers	= $headers->toArray();
			$curlOptions[CURLOPT_HTTPHEADER]	= $headers;
		}
		$this->applyCurlOptions( $curl, $curlOptions );
		$response		= $curl->exec( TRUE, FALSE );
		$this->curlInfo	= $curl->getInfo();
		$response		= Net_HTTP_Response_Parser::fromString( $response );
/*		$encodings	= $response->headers->getField( 'content-encoding' );
		while( $encoding = array_pop( $encodings ) )
		{
			$decompressor	= new Net_HTTP_Response_Decompressor;
			$type			= $encoding->getValue();
			$body			= $decompressor->decompressString( $response->getBody(), $type );
		}
		$response->setBody( $body );*/
		return $response;
	}
public function get ( $ url , $ headers = array ( ) , $ curlOptions = array ( ) ) { $ curl = clone ( $ this -> curl ) ; $ curl -> setOption ( CURLOPT_URL , $ url ) ; if ( $ headers ) { if ( $ headers instanceof Net_HTTP_Header_Section ) $ headers = $ headers -> toArray ( ) ; $ curlOptions [ CURLOPT_HTTPHEADER ] = $ headers ; } $ this -> applyCurlOptions ( $ curl , $ curlOptions ) ; $ response = $ curl -> exec ( TRUE , FALSE ) ; $ this -> curlInfo = $ curl -> getInfo ( ) ; $ response = Net_HTTP_Response_Parser :: fromString ( $ response ) ; /*		$encodings	= $response->headers->getField( 'content-encoding' );
		while( $encoding = array_pop( $encodings ) )
		{
			$decompressor	= new Net_HTTP_Response_Decompressor;
			$type			= $encoding->getValue();
			$body			= $decompressor->decompressString( $response->getBody(), $type );
		}
		$response->setBody( $body );*/ return $ response ; }
Returns Resource Response.
@access		public
@param		string							$url			Resource URL
@param		array|Net_HTTP_Header_Section	$headers		Map of HTTP Header Fields or Header Section Object
@param		array							$curlOptions	Map of cURL Options
@return		Net_HTTP_Response
Returns Resource Response .