Cts_Url

Summary
Cts_Url
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
Static Methods
getA wrapper for getting a remote page using CURL.

Author

Jaybill McCarthy

Static Methods

get

static function get( $url,  
array $postfields =  null,
 $username =  null,
 $password =  null)

A wrapper for getting a remote page using CURL.

Arguments

urlThe URL to retrieve.
postfields (optional)An array of name-value pairs for each HTTP POST field, if needed.
username (optional)A username for authenticating, if needed.
password (optional)A password for authenticating, if needed.

Returns

An array containing the http response code and page output.

static function get( $url,  
array $postfields =  null,
 $username =  null,
 $password =  null)
A wrapper for getting a remote page using CURL.
Close