RCurl getURL SSL错误 [英] RCurl getURL SSL error

查看:561
本文介绍了RCurl getURL SSL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相关问题:

获取ssl端点时的RCurl错误

R:在Rcurl中指定SSL版本getURL语句

我正在查看以下内容:

url = https://www.veilingbiljet.nl/resultaten-ajax.asp?order=datum&direction=D&page=1&field=0&regio=39

然后,

getURL(url)

出现以下错误: / p>

gives the following error:

error:1411809D:SSL routines:SSL_CHECK_SERVERHELLO_TLSEXT:tls invalid ecpointformat list

添加followinf curl选项,在相关问题之一中建议

Adding the followinf curl option, suggested in one of the related questions,

getURL(url, ssl.verifypeer = TRUE,sslversion=3L)

返回

Unknown SSL protocol error in connection to www.veilingbiljet.nl:443

任何帮助将非常感激。

推荐答案

使用 curl 包或 httr

library(curl)
con <- curl("https://www.veilingbiljet.nl/resultaten-ajax.asp?order=datum&direction=D&page=1&field=0&regio=39")
readLines(con)

或:

library(httr)
req <- GET("https://www.veilingbiljet.nl/resultaten-ajax.asp?order=datum&direction=D&page=1&field=0&regio=39")
stop_for_status(req)
content(req)

这篇关于RCurl getURL SSL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆