HttpRequest
PHP 手册

HttpRequest::setPutData

(PECL pecl_http >= 0.25.0)

HttpRequest::setPutDataSet put data

说明

public bool HttpRequest::setPutData ([ string $put_data ] )

Set PUT data to send, overwriting previously set PUT data.

Affects only PUT requests.

Only either PUT data or PUT file can be used for each request. PUT data has higher precedence and will be used even if a PUT file is set.

参数

put_data

the data to upload

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE


HttpRequest
PHP 手册