Sha256: 8ef5944f2763a466220b85a2ec3eb8f9aeab870f02a16a00e8d5ee68e9c7f60b

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'httpotato')
require 'pp'

class Google
  include HTTPotato
  format :html
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
httpotato-1.0.2 examples/google.rb