1CURLOPT_TRAILERDATA(3) curl_easy_setopt options CURLOPT_TRAILERDATA(3)
2
3
4
6 CURLOPT_TRAILERDATA - pointer passed to trailing headers callback
7
9 #include <curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TRAILERDATA, void *userdata);
12
14 Data pointer to be passed to the HTTP trailer callback function.
15
17 NULL
18
20 HTTP
21
23 /* Assuming we have a CURL handle in the hndl variable. */
24
25 struct MyData data;
26
27 curl_easy_setopt(hndl, CURLOPT_TRAILERDATA, &data);
28
29 A more complete example can be found in examples/http_trailers.html
30
32 This option was added in curl 7.64.0 and is present if HTTP support is
33 enabled
34
36 Returns CURLE_OK.
37
39 CURLOPT_TRAILERFUNCTION(3),
40
41
42
43libcurl 7.85.0 May 17, 2022 CURLOPT_TRAILERDATA(3)