downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

HttpRequest::setContentType> <HttpRequest::send
[edit] Last updated: Fri, 17 May 2013

view this page in

HttpRequest::setBody

(PECL pecl_http >= 1.5.0)

HttpRequest::setBodySet request body to send, overwriting previously set request body.

Açıklama

bool HttpRequest::setBody ([ string $request_body_data ] )

Set request body to send, overwriting previously set request body.

Değiştirgeler

request_body_data

The request body to overwrite the existing request body with.

Dikkat

Ensure that a Content-Type is specified in the request body.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Notlar

Dikkat

This method was previously available as HttpRequest::setRawPostData().

Ayrıca Bakınız



add a note add a note User Contributed Notes HttpRequest::setBody - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites