diff --git a/reference/http/HttpRequest/setBody.xml b/reference/http/HttpRequest/setBody.xml new file mode 100644 index 0000000000..ee761f7906 --- /dev/null +++ b/reference/http/HttpRequest/setBody.xml @@ -0,0 +1,85 @@ + + + + + HttpRequest::setBody + Set request body to send, overwriting previously set request body. + + + + &reftitle.description; + + boolHttpRequest::setBody + stringrequest_body_data + + + Set request body to send, overwriting previously set request body. + + + + + &reftitle.parameters; + + + + request_body_data + + + The request body to overwrite the existing request body with. + + Ensure that a Content-Type is specified in the request body. + + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.notes; + + + This method was previously available as + HttpRequest::setRawPostData. + + + + + + &reftitle.seealso; + + + HttpRequest::setRawPostData + + + + + + diff --git a/reference/http/HttpRequest/setRawPostData.xml b/reference/http/HttpRequest/setRawPostData.xml index c40ad84fca..15057d50d3 100644 --- a/reference/http/HttpRequest/setRawPostData.xml +++ b/reference/http/HttpRequest/setRawPostData.xml @@ -23,6 +23,15 @@ Raw post data has higher precedence and will be used even if post fields are set. + + + + 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. + + @@ -114,17 +123,14 @@ Use the PEAR Coding Standards --> -