httpstat - HTTP 响应的可视化命令行工具

httpstat

curl statistics made simple.
《httpstat - HTTP 响应的可视化命令行工具》 httpstat is a
single file🌟 Python script that has
no dependency👏 and is compatible with
Python 3🍻.

Usage

Just pass a url with it:

python httpstat.py httpbin.org/get

By default it will write response body in a tempfile, but you can print it out by setting
HTTPSTAT_SHOW_BODY=true:

HTTPSTAT_SHOW_BODY=true python httpstat.py httpbin.org/get

You can pass any curl supported arguments after the url (except for
-w,
-D,
-o,
-s which are already used by httpstat):

HTTPSTAT_SHOW_BODY=true python httpstat.py httpbin.org/post -X POST --data-urlencode "a=中文" -v
    原文作者:HTTP
    原文地址: https://juejin.im/entry/57c7a11d0e3dd9006a28a7ca
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞