Table of Contents

Linux Commands#network

httping : How to use httping command in Linux with examples

measure the latency and throughput of a webserver



man httping

# man httping
       -b     Use this switch together with -G. When this option is used, the transferspeed (in KB/s) is shown.
       -G     Do a GET request instead of a HEAD request: this means that also the complete page/file  must  be  transferred.
              Note that in this case youre no longer measuring the latency!
       -c count
              How many probes to send before exiting.
       -l     Connect using SSL: for this to work you need to give a ’ https’ -url or a 443 portnumber.
       -s     When a successfull transaction was done, show the HTTP statuscode (200, 404, etc.).

Sample

# httping -l -G -s -b -c 1 https://www.facebook.com/
PING www.facebook.com:443 (/):
connected to 173.252.74.22:443 (791 bytes), seq=0 time=869.45 ms 200 OK 218KB/s
--- https://www.facebook.com/ ping statistics ---
1 connects, 1 ok, 0.00% failed, time 1871ms
round-trip min/avg/max = 869.4/869.4/869.4 ms
Transfer speed: min/avg/max = 218.733000/218.732422/218.733000 KB
# httping -l -G -s  -c 1 https://mail.google.com/
PING mail.google.com:443 (/):
connected to 173.194.117.246:443 (434 bytes), seq=0 time=121.05 ms 200 OK
--- https://mail.google.com/ ping statistics ---
1 connects, 1 ok, 0.00% failed, time 1124ms
round-trip min/avg/max = 121.1/121.1/121.1 ms
# httping  -G -s  -c 1 http://www.amazon.com/
PING www.amazon.com:80 (/):
connected to 54.239.17.6:80 (912 bytes), seq=0 time=566.94 ms 200 OK
--- http://www.amazon.com/ ping statistics ---
1 connects, 1 ok, 0.00% failed, time 1569ms
round-trip min/avg/max = 566.9/566.9/566.9 ms