We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
For 2.2.0. (Should work earlier versions, too)
require 'httpclient' c = HTTPClient.new c.redirect_uri_callback = proc { |uri, res| URI.escape(res.headers["Location"]) } p c.get("http://bit.ly/eDWCrk", :follow_redirect => true)