Skip to content

Instantly share code, notes, and snippets.

@reagent
Created August 27, 2009 15:54
Show Gist options
  • Save reagent/176398 to your computer and use it in GitHub Desktop.
Save reagent/176398 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'curb'
client = Curl::Easy.new('http://bit.ly/fleakr') do |config|
config.follow_location = true
config.max_redirects = 5
end
client.http_head
puts client.last_effective_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment