ntlm proxy authentication rcurl problem

こ雲淡風輕ζ 提交于 2019-12-13 02:19:16

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/7028743/ntlm-proxy-authentication-rcurl-problem

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!