| 
				 public 
				
				
				 | 
			#
			__construct( )
				
Creates a new NetHttp object, initializes a curl instance 
				
Creates a new NetHttp object, initializes a curl instance | 
		
			| 
				 public 
				
				
				 | 
			#
			__destruct( )
				
Closes the current curl instance, if open 
				
Closes the current curl instance, if open | 
		
			| 
				 public 
				
				
				 | 
			#
			open( )
				
Explicitly open the curl instance, and close any open instance 
				
Explicitly open the curl instance, and close any open instance | 
		
			| 
				 public 
				
				
				 | 
			#
			close( )
				
Explicitly close the curl instance, if open 
				
Explicitly close the curl instance, if open | 
		
			| 
				 public 
				
				
				 | 
			#
			persistenConnection( boolean $persist )
				
Set whether or not this connection should be persistent 
				
Set whether or not this connection should be persistent Parameters
						$persistboolean$persist True to persist, false not to.
 | 
		
			| 
				 public 
				string
				
				 | 
			#
			get( string $url, mixed $params = null )
				
Execute a GET request on the given URL 
				
Execute a GET request on the given URL Parameters
						$urlstring$url The URL to GET
$paramsmixed$params An array of key/value pairs, or a string of the format key=value&...
Returns
						stringThe response from the URL
 
 See
							NetHttp::responseCode()
 | 
		
			| 
				 public 
				string
				
				 | 
			#
			post( mixed $url, array $params = null, mixed $files = null )
				
Execut a POST request on the given URL 
				
Execut a POST request on the given URL Parameters
						$urlmixed$params An array of key/value pairs, or a string of the format key=value&...
$paramsarray$files A multi-dimensional array of files in the format of
[0]=>array("name"=>"Name of file", "file"=>"File path")
$filesReturns
						stringThe response from the URL
 
 See
							NetHttp::responseCode()
 | 
		
			| 
				 public 
				integer
				
				 | 
			#
			responseCode( )
				
Fetch the response code for that last request 
				
Fetch the response code for that last request Returns
						integerThe HTTP response code for that last request
 
 | 
		
			| 
				 public 
				
				
				 | 
			#
			setCookieFile( string $cookie_file )
				
Set the cookie file to use for this request 
				
Set the cookie file to use for this request Parameters
						$cookie_filestringThe file name of the cookie file to set
Throws
						Exceptionthrown when the given $cookie_file does not exist
					 | 
		
		
		
			| 
				 public 
				
				
				 | 
			#
			setTimeout( integer $seconds )
				
Set the timeout for the current request 
				
Set the timeout for the current request Parameters
						$secondsinteger$seconds The number of seconds to wait before timing out
 | 
		
			| 
				 public 
				
				
				 | 
			#
			setOption( integer $option, string $value, boolean $override = true )
				
Set the given $option and $value. Accepts CURLOPT_* options. 
				
Set the given $option and $value. Accepts CURLOPT_* options. Parameters
						$optioninteger$option The CURLOPT_* option to set
$valuestring$value The value to set
$overrideboolean$override True to override the existing value, otherwise will only set the value
if not already set
 | 
		
			| 
				 public 
				string
				
				 | 
			#
			request( string $method, string $url, mixed $params = null )
				
Processes the request using the given method and URL, with optional
urlencoded parameters 
				
Processes the request using the given method and URL, with optional
urlencoded parameters Parameters
						$methodstring$method The request method (e.g. GET, POST, PUT, DELETE, etc.)
$urlstring$url The URL to requets
$paramsmixed$params An array of parametes or a URL encoded string of parameters
Returns
						stringThe response from the URL
 
 See
							NetHttp::responseCode()
 | 
		
			| 
				 public 
				
				
				 | 
			#
			debug( resource $debug_stream )
				
Enables debugging, which is sent to the given stream 
				
Enables debugging, which is sent to the given stream Parameters
						$debug_streamresource$debug_stream The stream to output debugging info to
 |