Linux系统安装 httpstat

请输入图片描述

今天因为需要装了一下httpstat,下面备注记录下。

从Github下载:

$ wget https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py
$ sudo pip install httpstat 

接下来试一下,使用:

$ python httpstat.py wangzhan.360.com
$ python -m httpstat wangzhan.360.com

结果如下:

[root@battlerhenry ~]# python -m httpstat wangzhan.360.com
Connected to 202.102.85.53:80 from 192.168.0.100:49222

HTTP/1.1 200 OK
Server: 360wzws
Date: Thu, 02 Nov 2017 03:22:48 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By-360WZB: wangzhan.360.cn
Set-Cookie: PHPSESSID=685ejhapauqgchagtaic76tb71; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Cache-control: private
X-Powered-By: 360
WZWS-RAY: 112-1509621768.593-s8njt

Body stored in: /tmp/tmpYkJPkh

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[    253ms   |      11ms      |       157ms       |        0ms       ]
             |                |                   |                  |
    namelookup:253ms          |                   |                  |
                        connect:264ms             |                  |
                                      starttransfer:421ms            |
                                                                 total:421ms  

————————————————————————————————————-
猫箱内の六轩岛原创文章,转载请保留出处:http://blog.ushiromiyabatora.com

Last modification:November 5th, 2017 at 09:00 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment