httpstat – Curl Statistics Made Simple

  • 382
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    382
    Shares

httpstat visualizes curl statistics in a way of beauty and clarity.
It is a single file Python script that has no dependency and is compatible with Python 3.

Installation:

There are three ways to get httpstat :

Step 1: Download the script directly: wget https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py
Step 2: Through pip: pip install httpstat
Step 3: Through homebrew (macOS only): brew install httpstat

 

How to use:

Simply:

python httpstat.py httpbin.org/get

If installed through pip or brew, you can use httpstat as a command:

httpstat httpbin.org/get

 

cURL Options
Because httpstat is a wrapper of cURL, you can pass any cURL supported option after the url (except for -w , -D , -o , -s , -S which are already used by httpstat ):

httpstat httpbin.org/post -X POST --data-urlencode "a=b" -v

Types Environment Variables:

httpstat has a bunch of environment variables to control its behavior. Here are some usage demos, you can also run httpstat --help to see full explanation.

  • HTTPSTAT_SHOW_BODY
  • HTTPSTAT_SHOW_IP
  • HTTPSTAT_SHOW_SPEED
  • HTTPSTAT_SAVE_BODY
  • HTTPSTAT_CURL_BIN
  • HTTPSTAT_DEBUG

Set to true to see debugging logs. Default is false

For convenience, you can export these environments in your .zshrc or .bashrc , example:

export HTTPSTAT_SHOW_IP=false
export HTTPSTAT_SHOW_SPEED=true
export HTTPSTAT_SAVE_BODY=false

 

Download now:  httpstat

The following two tabs change content below.

Unallocated Author

Please note that the article you are reading has an unallocated author as the original author is no longer employed at latesthackingnews.com, this has been put in place to adhere with general data protection regulations (GDPR). If you have any further queries, please contact: [email protected]

Unallocated Author

Please note that the article you are reading has an unallocated author as the original author is no longer employed at latesthackingnews.com, this has been put in place to adhere with general data protection regulations (GDPR). If you have any further queries, please contact: [email protected]

Leave a Reply