首页 编程 软件学院 查看内容

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

2016-9-2 19:29 1195 0

摘要: httpstatcurl statistics made simple.httpstat is asingle file:star2:Python script that hasno dependency:clap:and is compatible withPython 3:beers:.UsageJust pass a url with it:python httpstat.py httpbi ...

httpstat

curl statistics made simple.

httpstat is a single file :star2: Python script that has no dependency :clap: and is compatible with Python 3 :beers: .

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 settingHTTPSTAT_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
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除
1

路过

雷人

握手

鲜花

鸡蛋

刚表态过的朋友 (1 人)

  • 路过

    匿名

最新评论

返回顶部