HttpRequest::setBody
(PECL pecl_http >= 1.5.0)
HttpRequest::setBody — Set request body to send, overwriting previously set request body.
Descrierea
bool HttpRequest::setBody
([ string
$request_body_data
] )Set request body to send, overwriting previously set request body.
Parametri
-
request_body_data -
The request body to overwrite the existing request body with.
PrecauţieEnsure that a Content-Type is specified in the request body.
Valorile întoarse
Întoarce valoarea TRUE în cazul
succesului sau FALSE în cazul eșecului.
Note
Precauţie
This method was previously available as HttpRequest::setRawPostData().
There are no user contributed notes for this page.
