hsts.d 931 B

1234567891011121314151617181920212223242526
  1. c: Copyright (C) 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 is used. After a completed transfer, the
  15. cache is saved to the file name again if it has been modified.
  16. If curl is told to use HTTP:// for a transfer involving a host name that
  17. exists in the HSTS cache, it upgrades the transfer to use HTTPS. Each HSTS
  18. cache entry has an individual life time after which the upgrade is no longer
  19. performed.
  20. Specify a "" file name (zero length) to avoid loading/saving and make curl
  21. just handle HSTS in memory.
  22. If this option is used several times, curl loads contents from all the
  23. files but the last one is used for saving.