Created
December 13, 2013 19:50
-
-
Save ericat/7950201 to your computer and use it in GitHub Desktop.
Fix SSL verification problem with mechanize
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 'rubygems' | |
require 'mechanize' | |
agent = Mechanize.new | |
agent.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
page = agent.get('https://tradein.asda.com/Catalog/GetMakesForProductType?productTypeID=7') | |
puts page.content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment