summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/connect-timeout.d
blob: e66e35adfbea6c6063ef51b1f91ad2959181d273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Long: connect-timeout
Arg: <fractional seconds>
Help: Maximum time allowed for connection
See-also: max-time
Category: connection
Example: --connect-timeout 20 $URL
Example: --connect-timeout 3.14 $URL
---
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.