Timeout when using httr: POST ()

5

Expensive,

I'm trying to do a log conference in the website CREA-RS , but every time it is giving the following error:

Error in curl::curl_fetch_memory(url, handle = handle) : 
  Timeout was reached

Does anyone know what might be happening? The R is connecting normal to the internet. Here is the code I am trying to run:

b2 <- "http://apolo.crea-rs.org.br/apoloaplsrv01/servlet/org.crears.apolo.prod.hsel_profis_consulta_site?,0"
r <- POST(b2, encode = 'form', body = list("_PRF_NROCPF"  = 12345678910))
    
asked by anonymous 12.08.2016 / 15:29

1 answer

3

The httr package, for some reason, does not use the computer's proxy configuration. To resolve, you must load the devtools package and call the following function:

set_config(use_proxy(url="IP/URL DA PROXY", port=PORTA DA PROXY))
    
12.08.2016 / 20:42