This page looks best with JavaScript enabled

httpstat

 ·  🎃 kr0m

There are several factors that influence an HTTP connection, such as network connectivity, DNS resolution, server request processing, and response time. With httpstat, we can see the time spent on each of these phases, making it easier to debug the origin of our HTTP traffic problems.

We install the tool via pip:

pip install httpstat

An example could be this:

Basically, it is a wrapper of curl, which means that we can pass all the parameters supported by curl.

httpstat httpbin.org/post -X POST –data-urlencode “a=b” -v

httpstat supports the definition of environment variables to modify its behavior. To see them all, we can run:

httpstat –help

For convenience, they can be exported via our shell in the appropriate file, for bash it would be .bashrc:

export HTTPSTAT_SHOW_IP=false
export HTTPSTAT_SHOW_SPEED=true
export HTTPSTAT_SAVE_BODY=false
If you liked the article, you can treat me to a RedBull here