HttpRequest::setRawPostData
Set raw post data
Description
public
bool HttpRequest::setRawPostData
([ string $raw_post_data
] )
Only either post fields or raw post data can be used for each request.
Raw post data has higher precedence and will be used even if post fields
are set.
Warning
This function alias is DEPRECATED and only
exists for backwards compatibility reasons. The use of this function
is not recommended, as it may be removed from PHP in the future.
HttpRequest::setBody should be used instead.
Parameters
-
raw_post_data
-
raw post data
Return Values
Returns TRUE
on success or FALSE
on failure.