Properties

$host

$host : 

Type

$port

$port : 

Type

$path

$path : 

Type

$method

$method : 

Type

$postdata

$postdata : 

Type

$cookies

$cookies : 

Type

$referer

$referer : 

Type

$accept

$accept : 

Type

$accept_encoding

$accept_encoding : 

Type

$accept_language

$accept_language : 

Type

$user_agent

$user_agent : 

Type

$timeout

$timeout : 

Type

$use_gzip

$use_gzip : 

Type

$persist_cookies

$persist_cookies : 

Type

$persist_referers

$persist_referers : 

Type

$debug

$debug : 

Type

$handle_redirects

$handle_redirects : 

Type

$max_redirects

$max_redirects : 

Type

$headers_only

$headers_only : 

Type

$username

$username : 

Type

$password

$password : 

Type

$status

$status : 

Type

$headers

$headers : 

Type

$content

$content : 

Type

$errormsg

$errormsg : 

Type

$redirect_count

$redirect_count : 

Type

$cookie_host

$cookie_host : 

Type

Methods

__construct()

__construct(  $host,   $port = 80) 

Parameters

$host
$port

get()

get(  $path,   $data = false) 

Parameters

$path
$data

post()

post(  $path,   $data) 

Parameters

$path
$data

buildQueryString()

buildQueryString(  $data) 

Parameters

$data

doRequest()

doRequest() 

buildRequest()

buildRequest() 

getStatus()

getStatus() 

getContent()

getContent() 

getHeaders()

getHeaders() 

getHeader()

getHeader(  $header) 

Parameters

$header

getError()

getError() 

getCookies()

getCookies() 

getRequestURL()

getRequestURL() 

setUserAgent()

setUserAgent(  $string) 

Parameters

$string

setAuthorization()

setAuthorization(  $username,   $password) 

Parameters

$username
$password

setCookies()

setCookies(  $array) 

Parameters

$array

useGzip()

useGzip(  $boolean) 

Parameters

$boolean

setPersistCookies()

setPersistCookies(  $boolean) 

Parameters

$boolean

setPersistReferers()

setPersistReferers(  $boolean) 

Parameters

$boolean

setHandleRedirects()

setHandleRedirects(  $boolean) 

Parameters

$boolean

setMaxRedirects()

setMaxRedirects(  $num) 

Parameters

$num

setHeadersOnly()

setHeadersOnly(  $boolean) 

Parameters

$boolean

setDebug()

setDebug(  $boolean) 

Parameters

$boolean

quickGet()

quickGet(  $url) 

Parameters

$url

quickPost()

quickPost(  $url,   $data) 

Parameters

$url
$data

debug()

debug(  $msg,   $object = false) 

Parameters

$msg
$object