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

NAME

6       CURLOPT_TRAILERDATA - pointer passed to trailing headers callback
7

SYNOPSIS

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

DESCRIPTION

14       Data pointer to be passed to the HTTP trailer callback function.
15

DEFAULT

17       NULL
18

PROTOCOLS

20       HTTP
21

EXAMPLE

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

AVAILABILITY

32       This  option was added in curl 7.64.0 and is present if HTTP support is
33       enabled
34

RETURN VALUE

36       Returns CURLE_OK.
37

SEE ALSO

39       CURLOPT_TRAILERFUNCTION(3),
40
41
42
43libcurl 7.85.0                   May 17, 2022           CURLOPT_TRAILERDATA(3)
Impressum