GNURLOPT_XFERINFODATA(3)
β¨ GNURLOPT_XFERINFODATA(3) β¨
okay so bestie, welcome to the GNURLOPT_XFERINFODATA(3) page β it lives in the curl_easy_setopt options manual, and it's lowkey iconic π
π NAME π
CURLOPT_XFERINFODATA β a custom pointer that gets passed to the progress callback. That's the whole vibe, no cap.
πΈ SYNOPSIS πΈ
bestie, here's the exact signature β do not touch the punctuation π
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_XFERINFODATA, void
*pointer);
π¦ DESCRIPTION π¦
So you pass in a pointer, and libcurl will leave it completely untouched β like your fave hoodie that nobody else is allowed to borrow π β and that same pointer gets passed as the first argument in the progress callback set with CURLOPT_XFERINFOFUNCTION(3).
Also, this is an alias for CURLOPT_PROGRESSDATA(3). Slay β¨
π DEFAULT π
The default value of this parameter is NULL. So if you don't set it, it's NULL, periodt.
π PROTOCOLS π
All. Every single one. iconic behavior fr fr π₯
π EXAMPLE π
The original points you at this example URL, and yes, copy it exactly:
https://curl.haxx.se/libcurl/c/progressfunc.html
β AVAILABILITY β
Added in 7.32.0 β¨
π«Ά RETURN VALUE π«Ά
Returns CURLE_OK π
π SEE ALSO π
CURLOPT_XFERINFOFUNCTION(3), CURLOPT_VERBOSE(3), β yep, the original leaves a trailing comma at the end, so we're keeping it because accuracy is iconic π
mwah π this page is from source/version libcurl 7.37.0, dated 17 Jun 2014, and the footer says GNURLOPT_XFERINFODATA(3). Byeee π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, 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