Skip to content

Instantly share code, notes, and snippets.

@kevintyll
Created May 14, 2009 21:17
Show Gist options
  • Save kevintyll/111931 to your computer and use it in GitHub Desktop.
Save kevintyll/111931 to your computer and use it in GitHub Desktop.
uri = URI.parse(@file_path_or_url)
request = Net::HTTP::Get.new(uri.request_uri)
request.basic_auth(SsnValidator::Ntis.user_name,SsnValidator::Ntis.password)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = (uri.port == 443)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
response = http.request(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment