A simple interface to gather curl stats on a given HTTP interface.

Build Status


Add this line to your application's Gemfile:

gem 'check_http'

And then execute:

$ bundle

Or install it yourself as:

$ gem install check_http


Via the command line:

$ check_http
# return_code=ok total_time=0.209625 connect_time=0.111266 namelookup_time=0.028197 effective_url= primary_ip= response_code=301 redirect_count=0 url=

You can also stream urls into it:

$ cat list_of_urls.txt | check_http

There is also support for an advanced input mode:

$ echo url= location=my_house | check_http
# results will include the location key and any other keys you place in the input stream

Via the lib:

require 'check_http'
# => {:return_code=>:ok, :total_time=>0.143415, :connect_time=>0.080599, :namelookup_time=>0.023286, :effective_url=>"", :primary_ip=>"", :response_code=>301, :redirect_count=>0, :url=>""}


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request