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 |
stringURI resource.
\strarrayOptional. Override the defaults.
array'headers', 'body', 'cookies' and 'response' keys.test($args = array()) : boolean
| since | 2.7.0 |
|---|---|
| static |
booleanFalse means this class can not be used, true means it can.