Todo List
[line 169]
[line 139]
[line 145]
[line 79]
[line 193]
[line 175]
[line 73]
[line 97]
[line 133]
[line 151]
[line 109]
[line 127]
[line 115]
[line 121]
[line 205]
[line 181]
[line 85]
[line 163]
[line 199]
[line 103]
[line 211]
[line 157]
[line 67]
[line 187]
[line 91]
HTTP_Request HTTP_Request( [string $url = ''], [array $params = array()])
Sets up the object
void addCookie( string $name, string $value)
bool addFile( string $inputName, mixed $fileName, [mixed $contentType = 'application/octet-stream'])
This also changes content-type to 'multipart/form-data' for proper upload
void addHeader( string $name, string $value)
void addPostData( string $name, string $value, [bool $preencoded = false])
void addQueryString( string $name, string $value, [bool $preencoded = false])
void addRawPostData( string $postdata, [bool $preencoded = true])
void addRawQueryString( string $querystring, [bool $preencoded = true])
boolean attach( object HTTP_Request_Listener &$listener)
void clearCookies( )
Useful for multiple request scenarios
void clearPostData( )
Useful for multiple request scenarios.
boolean detach( object HTTP_Request_Listener &$listener)
void disconnect( )
mixed getResponseBody( )
mixed getResponseCode( )
mixed getResponseCookies( )
mixed getResponseHeader( [string $headername = null])
string getUrl( $url)
void removeHeader( string $name)
void reset( string $url, [array $params = array()])
Takes the same parameters as the constructor.
mixed sendRequest( [bool $saveBody = true])
void setBasicAuth( string $user, string $pass)
void setBody( string $body)
void setHttpVer( string $http)
void setMethod( string $method)
void setProxy( string $host, [int $port = 8080], [string $user = null], [string $pass = null])
void setURL( string $url)
array _flattenArray( string $name, mixed $values)