HTTP request method uses Curl extension to retrieve the url.
Requires the Curl extension to be installed.
package | WordPress |
---|---|
subpackage | HTTP |
since | 2.7 |
request(string $url, \str|array $args = array()
) : array
access | public |
---|---|
since | 2.7.0 |
string
\str
array
Optional. Override the defaults.
array
'headers', 'body', 'cookies' and 'response' keys.test($args = array()
) : boolean
static | |
---|---|
since | 2.7.0 |
boolean
False means this class can not be used, true means it can.