VERB | R Documentation |
Use an arbitrary verb.
VERB(
verb,
url = NULL,
config = list(),
...,
body = NULL,
encode = c("multipart", "form", "json", "raw"),
handle = NULL
)
verb |
Name of verb to use. |
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 |
A response()
object.
Other http methods:
BROWSE()
,
DELETE()
,
GET()
,
HEAD()
,
PATCH()
,
POST()
,
PUT()
r <- VERB(
"PROPFIND", "http://svn.r-project.org/R/tags/",
add_headers(depth = 1), verbose()
)
stop_for_status(r)
content(r)
## Not run:
VERB("POST", url = "http://httpbin.org/post")
VERB("POST", url = "http://httpbin.org/post", body = "foobar")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.