remove Accept-Encoding header so http.Transport does the gzip transparently for us
fix spacing for error message
fix -body
todo++
todos--; todos+=2
first draft of colour for headers and json
Print the Host header too

Since this is added later in net/http, we add it explicitly up front so
it will get dumped when we print the rest of the request headers.
fix extra newline when printing unformatted response headers
fix extra newline when printing unformatted request headers
Adding method PURGE list http methods accepted.

The PURGE method is commonly used to clear cache in reverse proxy servers.
Merge pull request #3 from cicerocomp/master

Adding method PURGE list http methods accepted.
add 'no format' and 'raw output' flags
update todos
properly format empty json hashes and arrays
properly quote json strings
don't indent the json body when POSTing
Change method guess to 'POST' if the user provides form parameters
Add file uploads.

This uses fieldname@filename to create a multipart form upload.  For the
moment, the content-type of uploaded files is set to
application/octet-stream.

The code to handle this and the regular form handling code is a bit
ugly.  Not sure exactly how to refactor, but this system is going to
need a testing framework soon to avoid regressions and unintentional
changes in behaviour.
Allow POSTing a raw body from the command line

This patch allows a raw POST body to be specified by using '-' as the
file name.  It also adds a boolean flag -m to disable sending files as
multipart form data and just include the parameters in the regular JSON
or urlencoded form values.

Closes #4.
Oops, fix nil pointer deference when no files provided