Sha256: 7309d36067a9e64257d44a308965378c352207ccce76024788b64b1265a66488

Contents?: true

Size: 342 Bytes

Versions: 153

Compression:

Stored size: 342 Bytes

Contents

require 'httpclient'

c = HTTPClient.new
c.debug_dev = STDOUT

# for Proxy authentication: supports Basic, Negotiate and NTLM.
#c.set_proxy_auth("admin", "admin")

# for WWW authentication: supports Basic, Digest and Negotiate.
c.set_auth("http://dev.ctor.org/http-access2/", "user", "user")
p c.get("http://dev.ctor.org/http-access2/login")

Version data entries

153 entries across 145 versions & 12 rubygems

Version Path
httpclient-2.5.3 sample/auth.rb
httpclient-2.5.2 sample/auth.rb
httpclient-2.5.1 sample/auth.rb
scout-5.9.7.2.pre vendor/httpclient/sample/auth.rb
httpclient-2.5.0 sample/auth.rb
scout-5.9.8.pre vendor/httpclient/sample/auth.rb
scout-5.9.7.1 vendor/httpclient/sample/auth.rb
glebtv-httpclient-3.2.8 sample/auth.rb
scout-5.9.7.pre vendor/httpclient/sample/auth.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/httpclient-2.4.0/sample/auth.rb
scout-5.9.5 vendor/httpclient/sample/auth.rb
scout-5.9.4 vendor/httpclient/sample/auth.rb
scout-5.9.4.pre vendor/httpclient/sample/auth.rb
httpclient-2.4.0 sample/auth.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/httpclient-2.3.4.1/sample/auth.rb
scout-5.9.3 vendor/httpclient/sample/auth.rb
glebtv-httpclient-3.2.7 sample/auth.rb
glebtv-httpclient-3.2.6 sample/auth.rb
glebtv-httpclient-3.2.4 sample/auth.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/httpclient-2.3.4.1/sample/auth.rb