HttpStat: It’s like curl -v, with colours

httpstat

Build Status

Shameless

Imitation is the sincerest form of flattery.

But seriously, http://bit.ly/2d2sXw3 is the new hotness, and this is a shameless rip off.

Installation

$ go get -u github.com/davecheney/httpstat

Usage

$ httpstat https://example.com/

We don’t need no stinking curl

httpstat.py is a wrapper around curl(1), which is all fine and good, but what if you don’t have curl(1) or python(1) installed?

TODO

The big ticket features which are missing at this point are:

  • support for https; this involves negotating the handshake before sending the request, adjusting the various timing points, and using the alternative template. done, thanks @freeformz
  • detect when httpstat is being piped to a file or other not tty device and disable coloured output. done, thanks @amy
  • support for more CURL flags, like -H HEADER and -X METHOD.
  • spool response.Body to a temporary file.
  • Sort response headers intelligently, #18.
  • Support curl’s -L flag to follow redirects, #23.
  • Handle urls without a scheme, #26

Contributing

Bug reports and feature requests are welcome.

Pull requests are most welcome, but if the feature is not on the TODO list, please open an issue to discuss the feature before slinging code. Thank you.

via Hacker News http://bit.ly/2d2t2zQ

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s