Skip to content

A simple command line tool that returns the HTTP-Status-Code of a URL

License

Notifications You must be signed in to change notification settings

mrong/http-ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


http-ping logo
http-ping

A simple command line tool thats pings a URL in a fixed interval

This is the result of a fun nightly live coding session at our LsW Telegram channel. We hope that you have just as much fun and that you find it useful as we do.

Requirements

  • Python 3.5+
  • curl (version >= 7.29.0)
  • argcomplete (optional) - pip install argcomplete

Installation

  • Download the latest release
  • Make the binary executable: chmod +x http-ping
  • Have fun :)

To make the usage more comfortable, you can create an alias in your .bashrc:

alias http-ping="/yourLocalPath/http-ping"

Or even install it systemwide in one of the bin folders (e.g. /usr/local/bin/http-ping)

How to use

Just type http-ping https://www.example.com Press ctrl+c to stop the process. At the end you'll see some statistics as it also provides the ping program.

Options

Parameter Meaning Default
--all-ips, -a request the given URL from all IP addresses behind the domain
--ipv4, -4 use IPv4 addresses only
--ipv6, -6 use IPv6 addresses only
--iterations, -i check the URL the given times no limit
--sleep, -s sleep the given time 1 second
--timeout, -t timeout for a single request none
--verbose, -v be more verbose
--version show the currently used version
--help, -h show the help message

Screenshots / Examples

screenshot1 screenshot1

Credits

Many thanks to fragbenny for the logo :)

License

Copyright © 2017 Michael Wieland and Michael Rong GNU General Public License v3.0

About

A simple command line tool that returns the HTTP-Status-Code of a URL

Resources

License

Stars

Watchers

Forks

Packages

No packages published