HttpRequest::setBody
(PECL pecl_http >= 1.5.0)
HttpRequest::setBody — Set request body to send, overwriting previously set request body.
Description
bool HttpRequest::setBody
([ string
$request_body_data
] )Set request body to send, overwriting previously set request body.
Parameters
-
request_body_data
-
The request body to overwrite the existing request body with.
CautionEnsure that a Content-Type is specified in the request body.
Return Values
Returns TRUE
on success or FALSE
on failure.
Notes
Caution
This method was previously available as HttpRequest::setRawPostData().
[an error occurred while processing the directive]
- Функция HttpRequest::addCookies() - Add cookies
- Функция HttpRequest::addHeaders() - Add headers
- Функция HttpRequest::addPostFields() - Add post fields
- Функция HttpRequest::addPostFile() - Add post file
- Функция HttpRequest::addPutData() - Add put data
- Функция HttpRequest::addQueryData() - Add query data
- Функция HttpRequest::addRawPostData() - Add raw post data
- Функция HttpRequest::addSslOptions() - Add ssl options
- Функция HttpRequest::clearHistory() - Clear history
- Функция HttpRequest::__construct() - HttpRequest constructor
- Функция HttpRequest::enableCookies() - Enable cookies
- Функция HttpRequest::getContentType() - Get content type
- Функция HttpRequest::getCookies() - Get cookies
- Функция HttpRequest::getHeaders() - Get headers
- Функция HttpRequest::getHistory() - Get history
- Функция HttpRequest::getMethod() - Get method
- Функция HttpRequest::getOptions() - Get options
- Функция HttpRequest::getPostFields() - Get post fields
- Функция HttpRequest::getPostFiles() - Get post files
- Функция HttpRequest::getPutData() - Get put data
- Функция HttpRequest::getPutFile() - Get put file
- Функция HttpRequest::getQueryData() - Get query data
- Функция HttpRequest::getRawPostData() - Get raw post data
- Функция HttpRequest::getRawRequestMessage() - Get raw request message
- Функция HttpRequest::getRawResponseMessage() - Get raw response message
- Функция HttpRequest::getRequestMessage() - Get request message
- Функция HttpRequest::getResponseBody() - Get response body
- Функция HttpRequest::getResponseCode() - Get response code
- Функция HttpRequest::getResponseCookies() - Get response cookie(s)
- Функция HttpRequest::getResponseData() - Get response data
- Функция HttpRequest::getResponseHeader() - Get response header(s)
- Функция HttpRequest::getResponseInfo() - Get response info
- Функция HttpRequest::getResponseMessage() - Get response message
- Функция HttpRequest::getResponseStatus() - Get response status
- Функция HttpRequest::getSslOptions() - Get ssl options
- Функция HttpRequest::getUrl() - Get url
- Функция HttpRequest::resetCookies() - Reset cookies
- Функция HttpRequest::send() - Send request
- Функция HttpRequest::setBody() - Set request body to send, overwriting previously set request body.
- Функция HttpRequest::setContentType() - Set content type
- Функция HttpRequest::setCookies() - Set cookies
- Функция HttpRequest::setHeaders() - Set headers
- Функция HttpRequest::setMethod() - Set method
- Функция HttpRequest::setOptions() - Set options
- Функция HttpRequest::setPostFields() - Set post fields
- Функция HttpRequest::setPostFiles() - Set post files
- Функция HttpRequest::setPutData() - Set put data
- Функция HttpRequest::setPutFile() - Set put file
- Функция HttpRequest::setQueryData() - Set query data
- Функция HttpRequest::setRawPostData() - Set raw post data
- Функция HttpRequest::setSslOptions() - Set ssl options
- Функция HttpRequest::setUrl() - Set URL
Коментарии
404 Not Found