Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_cookies

Set cookies.


Description

Set cookies.

Usage

set_cookies(..., .cookies = character(0))

Arguments

...

a named cookie values

.cookies

a named character vector

See Also

cookies() to see cookies in response.

Examples

set_cookies(a = 1, b = 2)
set_cookies(.cookies = c(a = "1", b = "2"))

GET("http://httpbin.org/cookies")
GET("http://httpbin.org/cookies", set_cookies(a = 1, b = 2))

httr

Tools for Working with URLs and HTTP

v1.4.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.