Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
capture HTTP requests and pretty print them
CSS JavaScript Ruby
branch: master
Failed to load latest commit information.
lib Merge branch 'master' of heroku.com:caphttp into heroku
Gemfile
Gemfile.lock Add dynamic loading of new captures via PubNub.
LICENSE.md LICENSE as markdown. mention separate bootstrap license in LICENSE.md
Procfile Procfile: allow for $PORT env var
README.md README.md: minor formatting change
config.ru commit initial skeleton.

README.md

caphttp

Capture HTTP requests and pretty print them on a web page.

Why?

I was too lazy to pipe socat into my nearest pastebin and keep track of the URLs so I wrote an app to do it for me. But mostly just to give me an excuse to tinker.

Requirements

  • Ruby
  • Heroku (barely)
  • Redis
  • MongoDB
  • PubNub

My intention when I started this was to whip up something I could run on Heroku for $0 using their available add-ons. There are a couple of Heroku-isms baked into the code but I'll refactor those.

Installation on Heroku

$ git clone git://github.com/coyled/caphttp.git
$ heroku create --stack cedar
$ heroku addons:add mongolab:starter                # currently free; please verify
$ heroku addons:add redistogo:nano                  # currently free; please verify
$ heroku addons:add pubnub:minimal                  # currently free; please verify
$ heroku config:add PUBNUB_PUB_KEY=<your_pub_key>   # see Heroku app resource page
$ heroku config:add PUBNUB_SUB_KEY=<your_sub_key>   # see Heroku app resource page
$ heroku config:add PUBNUB_SEC_KEY=<your_sec_key>   # see Heroku app resource page
$ git push heroku master
Something went wrong with that request. Please try again.