-m / --max-time
the maximum time, in seconds, that you allow the command line to spend before curl exits with a timeout error code (28). When the set time has elapsed, curl will exit no matter what is going on at that moment—including if it is transferring data. It really is the maximum time allowed.0.5
means 500 milliseconds and 2.37
equals 2370 milliseconds.--connect-timeout
limits the time curl will spend trying to connect to the host. All the necessary steps done before the connection is considered complete have to be completed within the given time frame. Failing to connect within the given time will cause curl to exit with a timeout exit code (28).0.5
means 500 milliseconds and 2.37
equals 2370 milliseconds: