开发者

ntlm proxy authentication rcurl problem

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜