R - download CVM data via POST method (package httr) (new - continues)

4

Good evening, guys !! I would like to have asked this question there in this post, which I refer to in the title, but it was not possible.

What happens is the following: I am using, for the same purpose, the resolution of our dear friend Tpiccarelli (link: #

The question is, the only thing that has changed is the site (url to which the post is sent), but I can not return the correct answer.

I get the following message: "Error in curl :: curl_fetch_memory (url, handle = handle):   Failed to connect to siteseguro.bovespa.com.br port 443: Connection refused "

And the answer that comes in XML is: " 1 " 404 - File or directory not found.Server Error404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. "

Looking for what might be, I read that it may be some proxy problem (novice here or even know what it is -.-) or firewall ... anyway. Could someone give a light ??

Below is the code I'm using:

library(httr)
library(xml2)

cvm <- "https://siteseguro.bovespa.com.br/rad/download/SolicitaDownload.asp"

informs <- list(txtLogin = "Login", 
                txtSenha = "senha", 
                txtData = "data", 
                txtHora = "hora", 
                txtDocumento = "ITR")

acesso <- POST(url = cvm, 
               body =informs , 
               encode = "json", 
               verbose())


conteudo=(read_xml(acesso$content))

xml_text(conteudo)
    
asked by anonymous 17.10.2018 / 21:16

0 answers