简体   繁体   English

RCurl身份验证问题

[英]RCurl Authentication issue

I am trying to use the RCurl package to authenticate using the https protocol. 我正在尝试使用RCurl包使用https协议进行身份验证。 I have found that if I just execute a curl command at the command line: "curl --netrc --cacert "url" I am able to retrieve the data I desire. 我发现,如果仅在命令行执行curl命令:“ curl --netrc --cacert” url“,便可以检索所需的数据。

However, when using the RCurl library and setting the appropriate options (SSL.verifypeers = TRUE, capath, netrc = TRUE, netrc.file = "~/.netrc"), I am unable to authenticate. 但是,当使用RCurl库并设置适当的选项(SSL.verifypeers = TRUE,capath,netrc = TRUE,netrc.file =“〜/ .netrc”)时,我无法进行身份验证。

I have noticed that the version of curl that RCurl uses is 7.19.7 and the version installed on my server is 7.39. 我注意到RCurl使用的curl的版本是7.19.7,服务器上安装的curl的版本是7.39。

Does this mean that I should try to rebuild RCurl, trying to use this new version of libcurl? 这是否意味着我应该尝试重建RCurl,尝试使用此新版本的libcurl?

It appears that I was simply missing the httpauth = 1L option. 看来我只是缺少了httpauth = 1L选项。 After setting this, my issue disappeared. 设置好之后,我的问题消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM