jnunemaker / httparty

Makes http fun! Also, makes consuming restful web services dead easy.

This URL has Read+Write access

httparty / examples / google.rb
3101b531 » jnunemaker 2008-11-08 Got redirection all work pr... 1 dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
2 require File.join(dir, 'httparty')
3 require 'pp'
4
5 class Google
6 include HTTParty
7 end
8
9 # google.com redirects to www.google.com so this is live test for redirection
10 pp Google.get('http://google.com')