1CURLOPT_HSTSREADDATA(3) curl_easy_setopt options CURLOPT_HSTSREADDATA(3)
2
3
4
6 CURLOPT_HSTSREADDATA - pointer passed to the HSTS read callback
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HSTSREADDATA, void
12 *pointer);
13
15 Data pointer to pass to the HSTS read function. If you use the CUR‐
16 LOPT_HSTSREADFUNCTION(3) option, this is the pointer you'll get as in‐
17 put in the 3rd argument to the callback.
18
19 This option doesn't enable HSTS, you need to use CURLOPT_HSTS_CTRL(3)
20 to do that.
21
23 NULL
24
26 This feature is only used for HTTP(S) transfer.
27
29 CURL *curl = curl_easy_init();
30 struct MyData this;
31 if(curl) {
32 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
33
34 /* pass pointer that gets passed in to the
35 CURLOPT_HSTSREADFUNCTION callback */
36 curl_easy_setopt(curl, CURLOPT_HSTSREADDATA, &this);
37
38 curl_easy_perform(curl);
39 }
40
42 Added in 7.74.0
43
45 This will return CURLE_OK.
46
48 CURLOPT_HSTSREADFUNCTION(3), CURLOPT_HSTSWRITEDATA(3), CUR‐
49 LOPT_HSTSWRITEFUNCTION(3),
50
51
52
53libcurl 7.79.1 September 06, 2021 CURLOPT_HSTSREADDATA(3)