HSTS
For HSTS, HTTP Strict Transport Security, libcurl provides two callbacks toallow an allocation to implement the storage for rules. The callbacks are thenset to read and/or write the HSTS policies from a persistent storage.
WithCURLOPT_HSTSREADFUNCTION
, the application provides a function usingwhich HSTS data into libcurl is read.CURLOPT_HSTSWRITEFUNCTION
is thecorresponding function that libcurl calls to write data.