2016-11-16 06:44:58 +08:00
|
|
|
Long: connect-timeout
|
2021-08-31 22:37:14 +08:00
|
|
|
Arg: <fractional seconds>
|
2016-11-16 06:44:58 +08:00
|
|
|
Help: Maximum time allowed for connection
|
|
|
|
See-also: max-time
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: connection
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --connect-timeout 20 $URL
|
|
|
|
Example: --connect-timeout 3.14 $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.7
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Maximum time in seconds that you allow curl's connection to take. This only
|
|
|
|
limits the connection phase, so if curl connects within the given period it
|
|
|
|
will continue - if not it will exit. Since version 7.32.0, this option
|
|
|
|
accepts decimal values.
|
|
|
|
|
|
|
|
If this option is used several times, the last one will be used.
|