-
-
Save anonymous/fc2bf9448e3cceb99aca 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
require 'nokogiri' | |
require 'mechanize' | |
#require 'httpclient' | |
#client = HTTPClient.new | |
agent = Mechanize.new | |
#mechanize = Mechanize.new | |
agent.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
#page = agent.get('https://contactcenter.com/Intra/') | |
auth(superawesomeusernamehere, mypasshere, domain = nil) = https://contactcenter.com/Intra/ | |
#def add_auth uri, user, pass, realm = nil, domain = nil | |
# uri = URI uri unless URI === uri | |
# raise ArgumentError, | |
'NTLM domain given with realm which NTLM does not use' if | |
# realm and domain | |
# uri += '/' | |
# auth_accounts https://contactcenter.com/Intra/ nil = superawesomeusernamehere, mypasshere, nil | |
# self | |
#end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment