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 | $host | The url |
int | $port | The port [OPTIONAL] |
string | $method | The method [OPTIONAL] |
string | $query_string | The query string [OPTIONAL] |
string | $post_data | The 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 | $url | Url to fetch |
integer | &$http_code | Reference to a variable that will receive the HTTP error code returned by the server. |
string | $ssl_cert_path | Full path rto the CA Certificate to use in case of SSL |
string | $http_proxy | Http Proxy setup (http://[user:password@]host:port |
string | $debug | If this is set, then should be a file on the server, where all the debug information will be dump. |
string | $real_url | It returns the real url (in case of redirection or something) |
- Returns:
- The returned data on success, false otherwise.
Gets the body as a hole from a chunked HTTP transfer
- Parameters:
-
protected
- Returns:
- string
The documentation for this class was generated from the following file: