hsts.md (937B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: hsts 5 Arg: <filename> 6 Protocols: HTTPS 7 Help: Enable HSTS with this cache file 8 Added: 7.74.0 9 Category: http 10 Multi: append 11 See-also: 12 - proto 13 Example: 14 - --hsts cache.txt $URL 15 --- 16 17 # `--hsts` 18 19 Enable HSTS for the transfer. If the filename points to an existing HSTS cache 20 file, that is used. After a completed transfer, the cache is saved to the 21 filename again if it has been modified. 22 23 If curl is told to use HTTP:// for a transfer involving a hostname that exists 24 in the HSTS cache, it upgrades the transfer to use HTTPS. Each HSTS cache 25 entry has an individual lifetime after which the upgrade is no longer 26 performed. 27 28 Specify a "" filename (zero length) to avoid loading/saving and make curl just 29 handle HSTS in memory. 30 31 If this option is used several times, curl loads contents from all the 32 files but the last one is used for saving.