Simple and uniform HTTP request API.
Will eventually replace and standardize the WordPress HTTP requests made.
| Class | Description |
|---|---|
| WP_Http | WordPress HTTP Class for managing HTTP Transports and making HTTP requests. |
| WP_Http_Fsockopen | HTTP request method uses fsockopen function to retrieve the url. |
| WP_Http_Fopen | HTTP request method uses fopen function to retrieve the url. |
| WP_Http_Streams | HTTP request method uses Streams to retrieve the url. |
| WP_Http_ExtHTTP | HTTP request method uses HTTP extension to retrieve the url. |
| WP_Http_Curl | HTTP request method uses Curl extension to retrieve the url. |
| WP_HTTP_Proxy | Adds Proxy support to the WordPress HTTP API. |
| WP_Http_Cookie | Internal representation of a single cookie. |
| WP_Http_Encoding | Implementation for deflate and gzip transfer encodings. |
Retrieve the raw response from the HTTP request using the GET method.
Retrieve the raw response from the HTTP request using the HEAD method.
Retrieve the raw response from the HTTP request using the POST method.
Retrieve the raw response from the HTTP request.
The array structure is a little complex.
All of the headers in $res['headers'] are with the name as the key and the value as the value. So to get the User-Agent, you would do the following.
The body is the raw response content and can be retrieved from $res['body'].
This function is called first to make the request and there are other API functions to abstract out the above convoluted setup.
Retrieve only the body from the raw response.
Retrieve a single header by name from the raw response.
Retrieve only the headers from the raw response.
Retrieve only the response code from the raw response.
Will return an empty array if incorrect parameter value is given.
Retrieve only the response message from the raw response.
Will return an empty array if incorrect parameter value is given.
Documentation generated on Wed, 19 Jun 2013 01:35:53 +0100 by phpDocumentor 1.4.3