Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby http client with "native" ntlm proxy support

Tags:

http

ruby

ntlm

I am looking for a ruby HTTP client gem that supports NTLM proxy authentication "natively" - not through cntlm or similar local proxies.

Any hints appreciated.

like image 878
Konrads Avatar asked Jul 02 '26 00:07

Konrads


1 Answers

A little digging unearthed Typhoeus:

require 'typhoeus'
e=Typhoeus::Easy.new
e.url="http://www.google.com/"
e.proxy = {:server => "1.2.3.4:80"}
e.proxy_auth={:username => "user", :password => 'password'}
e.perform
like image 196
Konrads Avatar answered Jul 04 '26 08:07

Konrads