本文介绍了RCurl getURL SSL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
相关问题:
我正在查看以下内容:
url = https://www.veilingbiljet.nl/resultaten-ajax.asp?order=datum&direction=D&page=1&field=0®io=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®io=39")
readLines(con)
或:
library(httr)
req <- GET("https://www.veilingbiljet.nl/resultaten-ajax.asp?order=datum&direction=D&page=1&field=0®io=39")
stop_for_status(req)
content(req)
这篇关于RCurl getURL SSL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!