Send PUT request to server.
Send PUT request to server.
PUT( url = NULL, config = list(), ..., body = NULL, encode = c("multipart", "form", "json", "raw"), handle = NULL )
url |
the url of the page to retrieve |
config |
Additional configuration settings such as http
authentication ( |
... |
Further named parameters, such as |
body |
One of the following:
|
encode |
If the body is a named list, how should it be encoded? Can be one of form (application/x-www-form-urlencoded), multipart, (multipart/form-data), or json (application/json). For "multipart", list elements can be strings or objects created by
|
handle |
The handle to use with this request. If not
supplied, will be retrieved and reused from the |
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")))) PUT(b2, body = list(x = "A simple text string"), encode = "json")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.