set_cookies: Set cookies.

Description Usage Arguments See Also Examples

View source: R/cookies.r

Description

Set cookies.

Usage

1

Arguments

...

a named cookie values

.cookies

a named character vector

See Also

cookies() to see cookies in response.

Other config: add_headers, authenticate, config, timeout, use_proxy, user_agent, verbose

Examples

1
2
3
4
5
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))

r-lib/httr documentation built on Dec. 9, 2018, 11:26 p.m.