SunshinePHP Developer Conference 2015

HttpRequest::setBody

(PECL pecl_http >= 1.5.0)

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

Beschreibung

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

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

Parameter-Liste

request_body_data

The request body to overwrite the existing request body with.

Achtung

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

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Anmerkungen

Achtung

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

Siehe auch

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top