pliski / urlcheck

CLI tool for checking the http responses for a given list of URLs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

urlcheck

CLI tool for checking the http responses for a given list of URLs.

Usage:

$ urlcheck https://go.dev/ https://charm.sh/
$ urlcheck -f ~/urls.txt

Inline and script usage

Check if go.dev is responding and wait max 20 seconds for the response:

#!/bin/bash 

if urlcheck -s http://go.dev -t 20 1>/dev/null 2>&1; then
  echo go.dev is UP
else
  echo go.dev is DOWN
fi

Dependencies

Todos

  • use timeoutRoundTripper instead of http.Cliet.Get also for urlist checking in urlcheck.go
  • -s flag : check also for the whole urilist and exit at the first fail
  • feat: continuous mode with retry interval

About

CLI tool for checking the http responses for a given list of URLs.

License:MIT License


Languages

Language:Go 98.4%Language:Shell 1.6%