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

In this article

Perform a request

Parameters

$urlstringrequired
URL to request
$headersarrayoptional
Associative array of request headers

Default:array()

$datastring|arrayoptional
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD

Default:array()

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

Default:array()

Return

string Raw HTTP result

Source

User Contributed Notes

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