set_cookies | R Documentation |
Set cookies.
set_cookies(..., .cookies = character(0))
... |
a named cookie values |
.cookies |
a named character vector |
cookies()
to see cookies in response.
Other config:
add_headers()
,
authenticate()
,
config()
,
timeout()
,
use_proxy()
,
user_agent()
,
verbose()
set_cookies(a = 1, b = 2)
set_cookies(.cookies = c(a = "1", b = "2"))
## Not run:
GET("http://httpbin.org/cookies")
GET("http://httpbin.org/cookies", set_cookies(a = 1, b = 2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.