Chinaunix首页 | 论坛 | 博客
  • 博客访问: 390606
  • 博文数量: 80
  • 博客积分: 885
  • 博客等级: 准尉
  • 技术积分: 917
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-02 11:43
个人简介

人生就是一次旅行,生活就是艺术,人人都是手艺人.

文章分类

全部博文(80)

文章存档

2023年(1)

2022年(5)

2019年(3)

2018年(1)

2017年(6)

2016年(4)

2014年(8)

2013年(20)

2012年(9)

2010年(3)

2009年(17)

2008年(3)

我的朋友

分类: 网络与安全

2019-09-03 14:08:33


点击(此处)折叠或打开

  1. [root@iZbp1bcl00jhxs58e1yex2Z php-httpstat]# php httpstat.php -voa 
    PHP Warning:  Zend OPcache huge_code_pages: mmap(HUGETLB) failed: Cannot allocate memory (12) in Unknown on line 0
    * About to connect() to port 80 (#0)
    *   Trying 180.101.49.11... connected
    * Connected to (180.101.49.11) port 80 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
    > Host:
    > Accept: */*

    < HTTP/1.1 200 OK
    < Accept-Ranges: bytes
    < Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
    < Connection: Keep-Alive
    < Content-Length: 2381
    < Content-Type: text/html
    < Date: Tue, 03 Sep 2019 06:09:28 GMT
    < Etag: "588604c8-94d"
    < Last-Modified: Mon, 23 Jan 2017 13:27:36 GMT
    < Pragma: no-cache
    < Server: bfe/1.0.8.18
    < Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/

    { [data not shown]
    * Connection #0 to host left intact
    * Closing connection #0


    HTTP/1.1 200 OK
    Accept-Ranges: bytes
    Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
    Connection: Keep-Alive
    Content-Length: 2381
    Content-Type: text/html
    Date: Tue, 03 Sep 2019 06:09:28 GMT
    Etag: "588604c8-94d"
    Last-Modified: Mon, 23 Jan 2017 13:27:36 GMT
    Pragma: no-cache
    Server: bfe/1.0.8.18
    Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/


    Body stored in: /tmp/phppFdtVL


      DNS Lookup   TCP Connection   Server Processing   Content Transfer
    [     1ms    |      10ms      |       11ms        |        1ms       ]
                 |                |                   |                  |
        namelookup:1ms            |                   |                  |
                            connect:11ms              |                  |
                                          starttransfer:22ms             |
                                                                     total:23ms   


php环境建议使用:
命令使用:
php httpstat.php -voa URL
如上例子:
阅读(4566) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~