Curl

Tool to manage internet resources

Set timeout to curl

Set a 5 seconds timeout

$ curl --max-time 5 https://domain.com/api/health

Reference

Manual