if (FALSE) { # rlang::is_installed(c("httr2", "webfakes"))
library(httr2)
domain <- url_parse(example_url())$hostname
add_cookies(cookiestring = "snicker=doodle; password=secret", domain = domain)
request(example_url()) |>
req_url_path("/cookies/set") |>
req_cookiemonster_set() |>
req_perform() |>
resp_body_json()
}
Run the code above in your browser using DataLab