HttpRequest::setBody

(PECL pecl_http >= 1.5.0)

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

설명

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

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

인수

request_body_data

The request body to overwrite the existing request body with.

Caution

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

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

주의

Caution

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

참고

add a note add a note

User Contributed Notes

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