curl --max-time 10 https://example.com

Category: Networking

curl --max-time 10 https://example.com

Set a 10-second timeout for a request

Sets a maximum time limit for the request. If the server doesn't respond within 10 seconds, curl gives up.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.