Httping is a time to test the connection of an HTTP request, send a request, and wait for a response. Httping is similar to ping, but instead of sending an ICMP request, it sends an HTTP request. With httping, we can measure the latency of the Web server and the network. httping Project Address: https://www.vanheusden.com/httping/
Httping Installation
$ apt-get Install httping # debian/ubuntu
$ Yum Install httping # Fedora/centos/rhel (Epel source)
$ yaourt-s httping # Arch linux
$ emerge-av httping # funtoo/gentoo
$ Brew Install httping # MAC
Brief introduction to several common options
-G to measure the URL
-L Use SSL connection
-C This and ping, as the number of requests
-y Enable color output
-X Host:port (if it is squid, use-X, do not use-h; Unlike curl, curl-h specifies the hostname to send, and this-H is the hostname assigned to DNS resolution)
-S separates the time into two parts of the connection and transmission display
-G GET (default is head)
-B shows the transfer speed using the Get condition kb/s
-B with-B, but with compression
-N A, which is provided for nagios monitoring, returns 1;>=B when the average response time >=a, returns 2; defaults to 0
-N c is provided to Nagios for monitoring, everything returns 0 normally, otherwise, if there is a failure, return C
-K using graphical mode
Httping use
$ httping -g blog.sina.com.cn/feirenraoyuan -c 5 -yping hi-linux.com:80 (/):connected to 23.91.98.188:80 (225 bytes), seq=0 time=391.34 ms connected to 23.91.98.188:80 (225 bytes), seq=1 time=456.97 ms connected to 23.91.98.188:80 (225 bytes), seq=2 time=472.89 ms connected to 23.91.98.188:80 (225 bytes), seq=3 time=289.64 ms connected to 23.91.98.188:80 (225 bytes), seq=4 time=180.28 ms --- http://hi-linux.com/ ping statistics ---5 connects, 5 ok, 0.00% Failed, time 6799msround-trip min/avg/max = 180.3/358.2/472.9 ms
$ httping -g https://www.baidu.com -c 5 -y -l auto enabling SSL due to https-URLPING www.baidu.com:443 (/): Connected to 220.181.112.244:443 (678 bytes), seq=0 time=164.95 ms connected to 220.181.112.244:443 (383 bytes), seq=1 time=142.61 ms connected to 220.181.112.244:443 (383 bytes), seq=2 time=166.66 ms connected to 220.181.112.244:443 (383 bytes), seq=3 time=139.77 ms connected to 220.181.112.244:443 (426 bytes), seq=4 time=164.19 ms --- https:// Www.baidu.com/ ping statistics ---5 connects, 5 ok, 0.00% failed, time 5783msround-trip min/avg/max = 139.8/155.6/166.7 ms
$ httping -x 10.1.2.210:1080 http://www.hi-linux.com/ -sgbs -c 5 ping www.hi-linux.com:80 (/):connected to www.hi-linux.com:80 (558 bytes), seq= 0 time= n/a+ 0.61+ 0.89+1914.14+ 0.08=1915.63 ms 200 OK 90KB/sconnected to www.hi-linux.com:80 (558 bytes), seq=1 time= n/a+ 1.21+ 2.51+1574.01+ 0.09=1577.73 ms 200 OK 80KB/sconnected to www.hi-linux.com:80 (557 bytes), seq=2 time= n/a+ 1.21+ 2.44+1396.79+ 0.09=1400.44 ms 200 OK 90KB/sconnected to www.hi-linux.com:80 (557 bytes), seq=3 time= n/a+ 1.07+ 2.57+4491.80+ 0.13=4495.44 ms 200 ok 71kb/sconnected to www.hi-linux.com:80 (558 bytes), seq=4 time= n/a+  1.08+  0.91+4535.66+  0.13=4537.65 MS 200 OK 22KB/S--- http ://www.hi-linux.com/ ping statistics ---5 connects, 5 ok, 0.00% failed , time 18944msround-trip min/avg/max = 1400.4/2785.4/4537.6 mstransfer Speed: min/avg/max = 22.674567/71.059180/90.632973 kb
Httping also supports IPV6, proxies, timeouts, request-first-class other features, and details can be man httping
queried. It is worth mentioning that Httping also has an Android version, there is a need for friends to be available via Google Play.
Reference documents
Http://blog.sina.com.cn/s/blog_04268f4b0100monk.html
https://linuxtoy.org/archives/httping.htmlhttp://www.hi-linux.com/categories/Linux/
This article from the "Black Wind Village Two Masters" blog, please be sure to keep this source http://feirenraoyuan.blog.51cto.com/782718/1784592
Test Web page response time with httping