CURLOPT_TRAILERDATA(3)

CURLOPT_TRAILERDATA3

Pointer passed to trailing headers callback

Usage

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

Overview

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

Default

NULL

Protocols

HTTP

Examples

struct MyData {
  void *custom;
};
int main(void)
{
  CURL *curl = curl_easy_init();
  if(curl) {
    struct MyData data;
    curl_easy_setopt(curl, CURLOPT_TRAILERDATA, &data);
  }
}

Return value

Returns CURLE_OK.

Releases

32 releases since macOS 12.0.1; the text changed 9 times.

  1. 12.0.1–12.2
  2. 12.3–12.5
  3. 13.0
  4. 13.1
  5. 13.2
  6. 13.3
  7. 13.4
  8. 13.5–14.1
  9. 14.2–14.4
  10. 14.5–26.5

Availability

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

From curl 166.0.0.0.1 in macOS 26.5. Parsed by carta from the page's man source.