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
12       *userdata);
13

DESCRIPTION

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

DEFAULT

18       NULL
19

PROTOCOLS

21       HTTP
22

EXAMPLE

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

AVAILABILITY

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

RETURN VALUE

37       Returns CURLE_OK.
38

SEE ALSO

40       CURLOPT_TRAILERFUNCTION(3),
41
42
43
44libcurl 7.79.1                September 08, 2021        CURLOPT_TRAILERDATA(3)
Impressum