ntlm代理认证rcurl问题
我位于 ntlm 代理服务器后面,无法正确设置 rcurl 选项以使其正常工作。 显然,curl 可以很好地使用正确的设置,这些设置是:
--proxy-ntlm
--proxy_user <...>
--proxy <...>
但我不知道如何从 R 正确传递所有这些选项。
我已经得到了:
>curl = getCurlHandle()
>curlSetOpt( .opts = list(proxy="...:...",proxyuserpwd="...:...",proxyauth="ntlm"),curl = curl)
>getURL("http://www.omegahat.org", curl = curl)
但这似乎仍然没有解决问题。
预先感谢您的回复。
i'm behind an ntlm proxy server and i can't set the rcurl options correctly for it to work.
Apparently curl woks fine with the correct settings which are:
--proxy-ntlm
--proxy_user <...>
--proxy <...>
but i don't know how to pass all these options correctly from R.
I've got as far as:
>curl = getCurlHandle()
>curlSetOpt( .opts = list(proxy="...:...",proxyuserpwd="...:...",proxyauth="ntlm"),curl = curl)
>getURL("http://www.omegahat.org", curl = curl)
but this still doesn't seem to do the trick.
thanks in advance for any replies.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来很合理,但有一些问题需要注意。
您的用户名可能也需要域,即
mydomain\\myusername:mypassword
。所有
\
都需要转义,包括密码中的那些。如果所有其他方法均失败,请尝试连接到其他端口。
It looks reasonable, but there are a few gotchas to watch out for.
Your username probably needs the domain too, i.e.,
mydomain\\myusername:mypassword
.All
\
s need escaping, including those in your password.If all else fails, try connecting on a different port.