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
12 *userdata);
13
15 Data pointer to be passed to the HTTP trailer callback function.
16
18 NULL
19
21 HTTP
22
24 /* Assuming we have a CURL handle in the hndl variable. */
25
26 struct MyData data;
27
28 curl_easy_setopt(hndl, CURLOPT_TRAILERDATA, &data);
29
30 A more complete example can be found in examples/http_trailers.html
31
33 This option was added in curl 7.64.0 and is present if HTTP support is
34 enabled
35
37 Returns CURLE_OK.
38
40 CURLOPT_TRAILERFUNCTION(3),
41
42
43
44libcurl 7.79.1 September 08, 2021 CURLOPT_TRAILERDATA(3)