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.8.1 sample/auth.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/httpclient-2.8.0/sample/auth.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/httpclient-2.8.0/sample/auth.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/httpclient-2.8.0/sample/auth.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/httpclient-2.8.0/sample/auth.rb
httpclient-2.8.0 sample/auth.rb
httpclient-2.7.2 sample/auth.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/httpclient-2.7.1/sample/auth.rb
httpclient-2.7.1 sample/auth.rb
httpclient-2.7.0.1 sample/auth.rb
httpclient-2.7.0 sample/auth.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/httpclient-2.6.0.1/sample/auth.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/httpclient-2.6.0.1/sample/auth.rb
scout-5.9.10.pre vendor/httpclient/sample/auth.rb
httpclient-2.6.0.1 sample/auth.rb
httpclient-2.6.0 sample/auth.rb
scout-5.9.8 vendor/httpclient/sample/auth.rb
httpclient-2.5.3.3 sample/auth.rb
httpclient-2.5.3.2 sample/auth.rb
httpclient-2.5.3.1 sample/auth.rb