Http contains a set of functions for retrieving http information
static Http::get_uri_contents |
( |
|
$uri | ) |
|
|
static |
Gets the content of a page
This mimics the file_content with a uri parameter which is often disabled due to security reasons
- Parameters
-
static Http::getHeaders |
( |
|
$url, |
|
|
|
$timeout = 1 |
|
) |
| |
|
static |
Queries a URL for headers
- Parameters
-
$url | the url to query |
$timeout | float number of seconds to wait before timeout |
- Returns
- an associative array of all headers returned
static Http::headersToArray |
( |
|
$response | ) |
|
|
static |
Splits an http header response into an associative array
- Parameters
-
$response | The headers to parse |
- Returns
- an Associative array, the key '' refers to the HTTP status header
static Http::postHeaders |
( |
|
$uri, |
|
|
|
$params, |
|
|
|
$timeout = 1 |
|
) |
| |
|
static |
Performs a post to an URI for headers
- Parameters
-
$uri | the uri to query |
$params | an associative array of params to post |
$timeout | float number of seconds to wait before timeout |
- Returns
- an associative array of all headers returned
The documentation for this class was generated from the following file: