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
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
- 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