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