Skip to content

Instantly share code, notes, and snippets.

@j2labs
Created April 2, 2012 20:59
Show Gist options
  • Save j2labs/2287164 to your computer and use it in GitHub Desktop.
Save j2labs/2287164 to your computer and use it in GitHub Desktop.
JSON, representing HTTP from Mongrel2
$ ./m2reader.py
34f9ceee-cd52-4b7f-b197-88bf2f0ec378 0 / 571:{"PATH":"/","x-forwarded-for":"127.0.0.1","accept-language":"en-US,en;q=0.8","accept-encoding":"gzip,deflate,sdch","connection":"keep-alive","accept-charset":"ISO-8859-1,utf-8;q=0.7,*;q=0.3","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30","host":"localhost:6767","METHOD":"GET","VERSION":"HTTP/1.1","URI":"/","PATTERN":"/"},0:,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment