Skip to content

Instantly share code, notes, and snippets.

@jlindley
Forked from jhsu/fetch_file.rb
Created June 18, 2011 04:07
Show Gist options
  • Save jlindley/1032795 to your computer and use it in GitHub Desktop.
Save jlindley/1032795 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'openssl'
req = URI.parse("https://gathercrm.com/internal/auth")
res = req.read(
:ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE,
:http_basic_authentication => ["test", "pass"]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment