Skip to content

Instantly share code, notes, and snippets.

@fabiokr
Created March 9, 2012 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiokr/2008792 to your computer and use it in GitHub Desktop.
Save fabiokr/2008792 to your computer and use it in GitHub Desktop.
irb
require 'uri'
require 'faraday'
uri = URI.parse("http://www.google.com.br")
response = Faraday.new(:url => uri) do |c|
c.params = {:a => "b"}
end.get.body
puts uri.to_s # http://www.google.com.br?a=b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment