Sha256: 3882867e1901f64c7c672389412776e27e8f93a4aa91b1bf242deae49880d5b1
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'httparty') require 'pp' class Google include HTTParty end # google.com redirects to www.google.com so this is live test for redirection pp Google.get('http://google.com') puts '', '*'*70, '' # check that ssl is requesting right pp Google.get('https://www.google.com')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jnunemaker-httparty-0.1.4 | examples/google.rb |