(PECL pecl_http >= 1.5.0)
HttpRequest::setBody — Set request body to send, overwriting previously set request body.
Set request body to send, overwriting previously set request body.
The request body to overwrite the existing request body with.
Ensure that a Content-Type is specified in the request body.
Returns TRUE on success or FALSE on failure.
This method was previously available as HttpRequest::setRawPostData().