HTTP request method uses fsockopen function to retrieve the url.
This would be the preferred method, but the fsockopen implementation has the most overhead of all the HTTP transport implementations.
package | WordPress |
---|---|
subpackage | HTTP |
since | 2.7.0 |
request(string $url, \str|array $args = array()
) : array
Does not support non-blocking mode.
see | For default options descriptions. |
---|---|
since | 2.7 |
access | public |
string
URI resource.
\str
array
Optional. Override the defaults.
array
'headers', 'body', 'cookies' and 'response' keys.test($args = array()
) : boolean
since | 2.7.0 |
---|---|
static |
boolean
False means this class can not be used, true means it can.