Uses
Uses | Description |
---|---|
wp-includes/Requests/Transport/cURL.php: Requests_Transport_cURL::setup_handle() | Setup the cURL handle for the given data |
Get the cURL handle for use in a multi-request
(string) (Required) URL to request
(array) (Required) Associative array of request headers
(string|array) (Required) Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
(array) (Required) Request options, see Requests::response() for documentation
(resource) Subrequest's cURL handle
File: wp-includes/Requests/Transport/cURL.php
public function &get_subrequest_handle($url, $headers, $data, $options) { $this->setup_handle($url, $headers, $data, $options); if ($options['filename'] !== false) { $this->stream_handle = fopen($options['filename'], 'wb'); } $this->response_data = ''; $this->response_bytes = 0; $this->response_byte_limit = false; if ($options['max_bytes'] !== false) { $this->response_byte_limit = $options['max_bytes']; } $this->hooks = $options['hooks']; return $this->handle; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_transport_curl/get_subrequest_handle