Install Ruby gems behind NTLM proxy -
i trying install ruby gems behind ntlm proxy. os windows 7. these solutions tried, non of them working.
using http_proxy:
set http_proxy=http://domain\user:pass@proxy.company.com:8080 set http_proxy=http://domain\\user:pass@proxy.company.com:8080 set http_proxy=http://domain\\user:pass@proxy.company.com:8080/
all above response bad uri
set http_proxy=http://user:pass@proxy.company.com:8080
response: bad response proxy authentication required 407
using -p or --http-proxy parameter ruby
gem install -p "http://domain\user:pass@proxy.company.com:8080" rake gem install -p "http://domain\\user:pass@proxy.company.com:8080" rake gem install -p http://domain\user:pass@proxy.company.com:8080 rake gem install -p http://domain\\user:pass@proxy.company.com:8080 rake gem install --http-proxy "http://domain\user:pass@proxy.company.com:8080" rake gem install --http-proxy "http://domain\\user:pass@proxy.company.com:8080" rake gem install --http-proxy http://domain\user:pass@proxy.company.com:8080 rake gem install --http-proxy http://domain\\user:pass@proxy.company.com:8080 rake
all response: invalid argument
try options above without domain or encode \ %5c receive reponse: bad response proxy authentication required 407
what did miss in these command or setup?
you can use cntlm
http://cntlm.sourceforge.net/, have local proxy requires no authentication (which in turns connects ntlm proxy).
Comments
Post a Comment