| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. | 
|  | 2 | SPDX-License-Identifier: curl | 
|  | 3 | Long: hsts | 
|  | 4 | Arg: <file name> | 
|  | 5 | Protocols: HTTPS | 
|  | 6 | Help: Enable HSTS with this cache file | 
|  | 7 | Added: 7.74.0 | 
|  | 8 | Category: http | 
|  | 9 | Example: --hsts cache.txt $URL | 
|  | 10 | See-also: proto | 
|  | 11 | Multi: append | 
|  | 12 | --- | 
|  | 13 | This option enables HSTS for the transfer. If the file name points to an | 
|  | 14 | existing HSTS cache file, that will be used. After a completed transfer, the | 
|  | 15 | cache will be saved to the file name again if it has been modified. | 
|  | 16 |  | 
|  | 17 | Specify a "" file name (zero length) to avoid loading/saving and make curl | 
|  | 18 | just handle HSTS in memory. | 
|  | 19 |  | 
|  | 20 | If this option is used several times, curl will load contents from all the | 
|  | 21 | files but the last one will be used for saving. |