Skip to content

Instantly share code, notes, and snippets.

@jalada
Created February 1, 2012 12:15
Show Gist options
  • Save jalada/1716782 to your computer and use it in GitHub Desktop.
Save jalada/1716782 to your computer and use it in GitHub Desktop.
response = Typhoeus::Request.get("http://example.com", :params => {"typhoeus" => "rocks"})
if response.success?
puts "Hell yeah! Here's what we got back:"
puts response.body
else
puts "Oh no! Error :("
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment