ploxy

[Permalink]     code command line inactive server server

github, tarball

A logging HTTP proxy written for node

Usage: ploxy <incoming [ip=0.0.0.0:]port> <outgoing address[:port=80]>

Request methods, URLs, and headers along with response headers will be logged to stdout in a simple format that can be grepped easily:

IN Method: "GET"
IN Url: "/"
IN Headers: {"host":"localhost:8001","connection":"keep-alive","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","accept-encoding":"gzip,deflate,sdch","accept-language":"en-GB,en-US;q=0.8,en;q=0.6","accept-charset":"ISO-8859-1,utf-8;q=0.7,*;q=0.3"}
OUT Headers: {"content-type":"text/html","transfer-encoding":"chunked","date":"Tue, 06 Sep 2011 15:12:52 GMT","server":"lighttpd/1.4.29"}
  miniserv   code command line inactive server server   Gnowt   code inactive other web   dmenu-notify   code desktop inactive other   Violining a contemptible fellow   blog code git   Break In!   blog games   xmodmap Hints and Tips   blog linux   Black Jack - pick up seven!   blog games   My favourite spoonerisms   words   Good things that have happened in the past week   blog   Good times with git   blog git   It's all Geek to me   blog   Javascript Closures   blog code javascript   Waffle. Move along.   blog   Things I learned today   blog   Hey, at least I'm not rioting   blog   HTML5 and holidays   blog holiday   Blah, cold. Do not want.   blog   Worst.Landlord.Ever   blog   Wheeee   blog   First!!1!one!!eleven   blog