httpmon is a synthetic monitoring command line tool, written by golang.
$ httpmon --status 200 --timeout 5s https://example.com/api
ok
$ httpmon --status 200 --timeout 5s https://example.com/api
status
expect: 200
actual: 503
test failed: 1 failed in 1 cases
-method(-Xfor short) - HTTP Method supporting methods-request-header- Request HTTP Header.- format:
[header-name]=[header-value](ex.content-type=application/json) - Can be specified multiple times.
- format:
-timeout(-tfor short) - Timeout for http client- format: numberUNIT (ex.
5mmeans 5 minutes,30smeans 30 seconds)
- format: numberUNIT (ex.
-status(-sfor short) - Expecting HTTP Status.-response-time(-rfor short) - Expecting Response time within. Format is the same as timeout.-expect-header- Expecting HTTP Response header. Format is the same as request header.
- GET
- POST
- PUT
- DELETE
- PATCH