Skip to content

Instantly share code, notes, and snippets.

@zenchild
Created December 8, 2009 05:32
Show Gist options
  • Save zenchild/251427 to your computer and use it in GitHub Desktop.
Save zenchild/251427 to your computer and use it in GitHub Desktop.
# Test NTLM authentication for httpclient
require 'rubygems'
require 'httpclient'
client = HTTPClient.new
domain = 'https://test.com/ews/'
user = 'user'
pass = 'pass'
client.set_auth(domain, user, pass)
resp = client.get(domain + 'Services.wsdl')
puts resp.content
puts resp.status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment