Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
mCurl Class Reference

Static Public Member Functions

static Get ($url, &$http_code, $ssl_cert_path=false, $http_proxy=false, $debug=false, $saveToFile=false, &$real_url=null)
static doHttp ($host, $port=80, $method= 'GET', $query_string=null, $headers=null, $post_data=null)

Static Protected Member Functions

static getChunkedBody ($body)

Member Function Documentation

static doHttp ( host,
port = 80,
method = 'GET',
query_string = null,
headers = null,
post_data = null 
) [static]

Do a HTTP request

Parameters:
string$hostThe url
int$portThe port [OPTIONAL]
string$methodThe method [OPTIONAL]
string$query_stringThe query string [OPTIONAL]
string$post_dataThe POST data [OPTIONAL]

public

Returns:
array
static Get ( url,
&$  http_code,
ssl_cert_path = false,
http_proxy = false,
debug = false,
saveToFile = false,
&$  real_url = null 
) [static]

Send a GET request to an HTTP Server and retrieves its results

Parameters:
string$urlUrl to fetch
integer&$http_codeReference to a variable that will receive the HTTP error code returned by the server.
string$ssl_cert_pathFull path rto the CA Certificate to use in case of SSL
string$http_proxyHttp Proxy setup (http://[user:password@]host:port
string$debugIf this is set, then should be a file on the server, where all the debug information will be dump.
string$real_urlIt returns the real url (in case of redirection or something)
Returns:
The returned data on success, false otherwise.
static getChunkedBody ( body) [static, protected]

Gets the body as a hole from a chunked HTTP transfer

Parameters:
string$bodyThe body

protected

Returns:
string

The documentation for this class was generated from the following file: