httr GET SSL连接错误

时间:2016-12-02 15:05:08

标签: r ssl curl httr

我遇到关于CURL和SSL的错误,我不知道发生了什么。

我已经更新了所有可能的包,并成功获得其他HTTPS请求的响应。我试过Windows 7和10。

此代码有什么问题?

sqlite

我的sessionInfo()

u <-"https://www.receita.fazenda.gov.br/Aplicacoes/SSL/ATCTA/CPF/ConsultaPublica.asp"
curl::curl_fetch_memory(u,  new_handle(verbose=T))


* timeout on name lookup is not supported
* Hostname in DNS cache was stale, zapped
*   Trying 161.148.231.100...
* TCP_NODELAY set
* Connected to www.receita.fazenda.gov.br (161.148.231.100) port 443 (#3)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: C:/Users/athos.damiani/Documents/R/R-3.3.2/etc/curl-ca-bundle.crt
  CApath: none
* Unknown SSL protocol error in connection to www.receita.fazenda.gov.br:443 
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 3
Error in curl::curl_fetch_memory(u, new_handle(verbose = T)) : 
  SSL connect error

谢谢!

1 个答案:

答案 0 :(得分:1)

由于curl报告

,它可能与r无关
curl: (35) Unknown SSL protocol error in connection to www.receita.fazenda.gov.br:443

在该网址上。因此,您需要解决的SSL证书存在一般性问题。