httpstat – Curl Statistics Made Simple

httpstat httpstat - Curl Statistics Made Simple Technology
httpstat visualizes curl(1) statistics in some way of attractiveness and readability.
This is a unmarried document Python script that has no dependency and is appropriate with Python 3.


Set up
There are three techniques to get httpstat :

  • Obtain the script immediately: wget https://uncooked.githubusercontent.com/reorx/httpstat/grasp/httpstat.py
  • Via pip: pip set up httpstat
  • Via homebrew (macOS handiest): brew set up httpstat

Utilization
Merely:

python httpstat.py httpbin.org/get

If put in via pip or brew, you’ll be able to use httpstat as a command:

httpstat httpbin.org/get

cURL Choices
As a result of httpstat is a wrapper of cURL, you’ll be able to move any cURL supported possibility after the url (apart from for -w , -D , -o , -s , -S that are already utilized by httpstat ):

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

Atmosphere Variables
httpstat has a number of setting variables to regulate its conduct. Listed below are some utilization demos, you’ll be able to additionally run httpstat --help to look complete rationalization.

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

Set to true to look debugging logs. Default is false

For convenience, you’ll be able to export those environments for your .zshrc or .bashrc , instance:

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

Similar Initiatives
Listed below are some implementations in more than a few languages:

Some code blocks in httpstat are copied from different initiatives of mine, take a look:

rMoNA0GpE-8 httpstat - Curl Statistics Made Simple Technology

Marshmallow

Marshmallow Man, AppMarsh.com blog spiritual leader, has strived to make AppMarsh an independent and free blog from world monetary system. He and his followers are exiled by Google monster.