©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL pecl_http >= 1.5.0)
HttpRequest::setBody — Set request body to send, overwriting previously set request body.
$request_body_data
] )Set request body to send, overwriting previously set request body.
request_body_data
The request body to overwrite the existing request body with.
Ensure that a Content-Type is specified in the request body.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
This method was previously available as HttpRequest::setRawPostData() .