WP_Http_Curl::stream_body

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Grabs the body of the cURL request.

Syntax

WP_Http_Curl::stream_body( resource $handle, string $data )

DescriptionDescription

The contents of the document are passed in chunks, so we append to the $body property for temporary storage. Returning a length shorter than the length of $data passed in will cause cURL to abort the request with CURLE_WRITE_ERROR.

ParametersParameters

$handle

(resource) (Required) cURL handle.

$data

(string) (Required) cURL request body.

ReturnReturn

(int) Total bytes of data written.

SourceSource

File: wp-includes/class-wp-http-curl.php


			

ChangelogChangelog

Changelog
Version Description
3.6.0 Introduced.
Scroll to Top