开发者

ntlm proxy authentication rcurl problem

开发者 https://www.devze.com 2023-03-27 16:42 出处:网络
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:

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

精彩评论

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