HttpRequest::setPostFiles
HttpRequest::setPutFile
The HttpRequest
PHP Manual

# HttpRequest::setPutData

(PECL pecl_http:0.25.0-1.5.5)

HttpRequest::setPutData — Set 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::setPostFiles
HttpRequest::setPutFile
The HttpRequest
PHP Manual