Debian Codegraph @

man/handle_cookies.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/handle.R
3 \name{handle_cookies}
4 \alias{handle_cookies}
5 \title{Extract cookies from a handle}
6 \usage{
7 handle_cookies(handle)
8 }
9 \arguments{
10 \item{handle}{a curl handle object}
11 }
12 \description{
13 The \code{handle_cookies} function returns a data frame with 7 columns as specified in the
14 \href{http://www.cookiecentral.com/faq/#3.5}{netscape cookie file format}.
15 }
16 \examples{
17 h <- new_handle()
18 handle_cookies(h)
19
20 # Server sets cookies
21 req <- curl_fetch_memory("https://hb.cran.dev/cookies/set?foo=123&bar=ftw", handle = h)
22 handle_cookies(h)
23
24 # Server deletes cookies
25 req <- curl_fetch_memory("https://hb.cran.dev/cookies/delete?foo", handle = h)
26 handle_cookies(h)
27
28 # Cookies will survive a reset!
29 handle_reset(h)
30 handle_cookies(h)
31 }
32 \seealso{
33 Other handles:
34 \code{\link{handle}}
35 }
36 \concept{handles}