To “timeout” a request after a number of seconds, use the -m switch:
And in case the web server doesn’t respond after 5 seconds, curl will exit with an error code.
Developer from somewhere
To “timeout” a request after a number of seconds, use the -m switch:
And in case the web server doesn’t respond after 5 seconds, curl will exit with an error code.