-
[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
如上例子:
阅读(4639) | 评论(0) | 转发(0) |