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

search for in the

HttpRequest::setSslOptions> <HttpRequest::setQueryData
[edit] Last updated: Fri, 30 Nov 2012

view this page in

HttpRequest::setRawPostData

(PECL pecl_http 0.14.0-1.4.1)

HttpRequest::setRawPostDataSet raw post data

Opis

public bool HttpRequest::setRawPostData ([ string $raw_post_data ] )

Set raw post data to send, overwriting previously set raw post data. Don't forget to specify a content type. Affects only POST and custom requests.

Only either post fields or raw post data can be used for each request. Raw post data has higher precedence and will be used even if post fields are set.

Ostrzeżenie

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.

Parametry

raw_post_data

raw post data

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.

Zobacz też:



add a note add a note User Contributed Notes HttpRequest::setRawPostData - [1 notes]
up
0
matteo dot giaccone at acmos dot net
3 years ago
use setBody instead to have the not deprecated version.

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