Skip to content

Instantly share code, notes, and snippets.

@ericat
Created December 13, 2013 19:50
Show Gist options
  • Save ericat/7950201 to your computer and use it in GitHub Desktop.
Save ericat/7950201 to your computer and use it in GitHub Desktop.
Fix SSL verification problem with mechanize
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