Requests_Transport_fsockopen::request( string $url, array $headers = array(), string|array $data = array(), array $options = array() ): string

Perform a request


Parameters

$url string Required
URL to request
$headers array Optional
Associative array of request headers

Default: array()

$data string|array Optional
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD

Default: array()

$options array Optional
Request options, see Requests::response() for documentation

Default: array()


Top ↑

Return

string Raw HTTP result


Top ↑

Source

File: wp-includes/Requests/Transport/fsockopen.php. View all references

View on Trac


Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.