PUT

0th

Percentile

Send PUT request to server.

Send PUT request to server.

Usage
PUT(url = NULL, config = list(), ..., body = NULL, multipart = TRUE,
  handle = NULL)
Arguments
url
the url of the page to retrieve
config
Additional configuration settings such as http authentication (authenticate), additional headers (add_headers), cookies (
...
Further parameters, such as query, path, etc, passed on to modify_url. These parameters must be named.
body
One of the following:
  • FALSE: No body
  • NULL: An empty body
  • A length one character or raw vector: sent as is in body.
  • A named list: Each component should either be a string or the object returned
multipart
Should the form be send as multipart/form-data (TRUE), or application/x-www-form-urlencoded (FALSE). Files can not be uploaded when FALSE.
handle
The handle to use with this request. If not supplied, will be retrieved and reused from the handle_pool based on the scheme, hostname and port of the url. By default httr requests to th
Aliases
  • PUT
Examples
b <- new_bin()
PUT(b)

POST("http://httpbin.org/put")
PUT("http://httpbin.org/put")

b2 <- "http://httpbin.org/put"
PUT(b2, body = "A simple text string")
PUT(b2, body = list(x = "A simple text string"))
PUT(b2, body = list(y = upload_file(system.file("CITATION"))))
Documentation reproduced from package httr, version 0.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.