RubyGems.org

a Rails gem that allows you to validate a URL entered in a form. It validates if the URL exists by hitting it with a HEAD request. The improved version includes retries for common patterns when the head request is refused before giving a failure notice. It also looks up a SITE_URL constant to the user agent in the headers. Also has the option to also check that the URL returns content of a specified type.

installgem install http_url_validation_improved
Authors

Erik Gregg, Walter McGinnis, Kieran Pilkington

5,698 total downloads 1,049 for this version
Owners

B2389e133502771dd15b1c2fd7752672

Gemfile
gem 'http_url_validation_improved', '~> 1.3.1'
Versions
  1. 1.3.1 June 14, 2012 (8 KB)
  2. 1.3.0 February 3, 2011 (8 KB)
  3. 1.2.0 June 14, 2010 (8 KB)
  4. 1.1.1 June 3, 2010 (7.5 KB)
Show all versions (5 total)
Runtime Dependencies
  1. addressable >= 0
Development Dependencies
  1. thoughtbot-shoulda >= 0