How can i post "within" a html session?
So after i opened a session via a <- rvest::html_session(url)
I tried:
library(httr)
POST(path,
add_headers(setNames(as.character(headers(a)), names(headers(a)))),
set_cookies(setNames(cookies(a)$value, cookies(a)$name)),
body = list(...),
encode = "json")
But this handles my request as I were not logged in. Any suggestions?
I am looking for something like POST(session, path, body, ...)