GNURLOPT_TRAILERDATA(3)
π¦ GNURLOPT_TRAILERDATA(3) π¦
okay so bestie, this is the GNURLOPT_TRAILERDATA(3) page from the curl_easy_setopt options manual, and we're gonna get you comfy with it β no skips, no cap π
πΈ NAME πΈ
CURLOPT_TRAILERDATAβ Custom pointer passed to the trailing headers callback. that's the whole name, iconic.
β¨ SYNOPSIS β¨
#include <curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TRAILERDATA, void
*userdata);
π DESCRIPTION π
This is literally a data pointer that gets passed to the HTTP trailer callback function. that's its job π«Ά
π DEFAULT π
The default is NULL, periodt.
π PROTOCOLS π
HTTP β that's the protocol vibe here.
π EXAMPLE π
/* Assuming we have a CURL handle in the hndl variable. */
struct MyData data;
curl_easy_setopt(hndl, CURLOPT_TRAILERDATA, &data);
A more complete example can be found in examples/http_trailers.html β¨
π AVAILABILITY π
This option was added in curl 7.64.0 and is present if HTTP support is enabled. noted, bestie π
π₯ SEE ALSO π₯
CURLOPT_TRAILERFUNCTION(3),β the related callback page, go check it π¦
that's the whole page, bestie π«Ά source/version: libcurl 7.64.0 Β· date: 14 Aug 2018 Β· page: GNURLOPT_TRAILERDATA(3) β bye π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms