Download file after fill form with R
问题 I am trying to access a website, fill the form and after that download the file in my computer, but I am having some hard time. This is my code right now: #library's require(rvest) #website url <- ("http://www.anbima.com.br/est_termo/Curva_Zero.asp") pgsession <- html_session(url) pgform <-html_form(pgsession)[[1]] param <- set_values(pgform, "escolha" = "2", "Dt_Ref" = Sys.Date() ) submit <- submit_form(pgsession, form = param, "Consultar") But this code returns an error after send the