Skip to content

Commit

Permalink
CURLOPT_HSTS.3: document the file format
Browse files Browse the repository at this point in the history
Closes #6205
  • Loading branch information
bagder committed Nov 13, 2020
1 parent df2af7d commit 03822c3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/libcurl/opts/CURLOPT_HSTS.3
Expand Up @@ -46,6 +46,21 @@ only enable HSTS without reading from or writing to any file.

If this option is set multiple times, libcurl will load cache entries from
each given file but will only store the last used name for later writing.
.SH "FILE FORMAT"
The HSTS cache is saved to and loaded from a text file with one entry per
physical line. Each line in the file has the following format:

[host] [stamp]

[host] is the domain name for the entry and the name is dot-prefixed if it is
a includeSubDomain entry (if the entry is valid for all subdmains to the name
as well or only for the exact name).

[stamp] is the time (in UTC) when the entry expires and it uses the format
\&"YYYYMMDD HH:MM:SS".

Lines starting with "#" are treated as comments and are ignored. There is
currently no length or size limit.
.SH DEFAULT
NULL, no file name
.SH PROTOCOLS
Expand Down

0 comments on commit 03822c3

Please sign in to comment.