timing out with curl

Developer from somewhere

To “timeout” a request after a number of seconds, use the -m switch:

curl -m 5 some_url

And in case the web server doesn’t respond after 5 seconds, curl will exit with an error code.