Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'vcr'
- require 'net/http'
- VCR.configure do |c|
- c.cassette_library_dir = 'cassettes'
- c.stub_with :webmock
- c.default_cassette_options = { :record => :once }
- end
- host = "encrypted.google.com"
- http = Net::HTTP.new(host, 443)
- http.use_ssl = true
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
- url = "/search?abc=%2B"
- VCR.use_cassette("example") do
- http.request(Net::HTTP::Post.new(url))
- end
- VCR.use_cassette("example") do
- http.request(Net::HTTP::Post.new(url))
- end
Add Comment
Please, Sign In to add comment