Created
December 8, 2009 05:32
-
-
Save zenchild/251427 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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