Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

capture HTTP requests and pretty print them

branch: master
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.