1CURLOPT_TRAILERDATA(3)     curl_easy_setopt options     CURLOPT_TRAILERDATA(3)
2
3
4

NAME

6       CURLOPT_TRAILERDATA  -  Custom  pointer  passed to the trailing headers
7       callback
8

SYNOPSIS

10       #include <curl.h>
11
12       CURLcode  curl_easy_setopt(CURL  *handle,   CURLOPT_TRAILERDATA,   void
13       *userdata);
14

DESCRIPTION:

16       Data pointer to be passed to the HTTP trailer callback function.
17

DEFAULT

19       NULL
20

PROTOCOLS

22       HTTP
23

EXAMPLE

25       /* Assuming we have a CURL handle in the hndl variable. */
26
27       struct MyData data;
28
29       curl_easy_setopt(hndl, CURLOPT_TRAILERDATA, &data);
30
31       A more complete example can be found in examples/http_trailers.html
32

AVAILABILITY

34       This  option was added in curl 7.64.0 and is present if HTTP support is
35       enabled
36

SEE ALSO

38       CURLOPT_TRAILERFUNCTION(3),
39
40
41
42libcurl 7.76.1                 November 04, 2020        CURLOPT_TRAILERDATA(3)
Impressum