The handle_cookies
function returns a data frame with 7 columns as specified in the
netscape cookie file format.
handle_cookies(handle)
handle | a curl handle object |
---|
Other handles:
handle
#> [1] domain flag path secure expiration name value #> <0 rows> (or 0-length row.names)# Server sets cookies req <- curl_fetch_memory("http://httpbin.org/cookies/set?foo=123&bar=ftw", handle = h) handle_cookies(h)#> domain flag path secure expiration name value #> 1 httpbin.org FALSE / FALSE <NA> foo 123 #> 2 httpbin.org FALSE / FALSE <NA> bar ftw# Server deletes cookies req <- curl_fetch_memory("http://httpbin.org/cookies/delete?foo", handle = h) handle_cookies(h)#> domain flag path secure expiration name value #> 1 httpbin.org FALSE / FALSE <NA> bar ftw#> domain flag path secure expiration name value #> 1 httpbin.org FALSE / FALSE <NA> bar ftw