GNURLOPT_PROGRESSDATA(3)
π GNURLOPT_PROGRESSDATA(3) π
okay so bestie, this page is part of the curl_easy_setopt options manual, and it's here to explain a tiny but iconic little setting: the custom pointer you pass to your progress callback. no cap, it's giving "just a pointer" but it's actually useful π
πΈ NAME πΈ
CURLOPT_PROGRESSDATAβ custom pointer passed to the progress callback
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROGRESSDATA, void
*pointer);
π¦ DESCRIPTION π¦
You pass in a pointer, and libcurl will leave it completely untouched. It just hands that same pointer back to you as the first argument in the progress callback you set with CURLOPT_PROGRESSFUNCTION(3). literally that's it, and that's the vibe π«Ά
π DEFAULT π
The default value of this parameter is NULL.
π PROTOCOLS π
All
π EXAMPLE π
the official example is right here, bestie:
https://curl.haxx.se/libcurl/c/progressfunc.html
β AVAILABILITY β
Always
π RETURN VALUE π
Returns CURLE_OK
π SEE ALSO π
CURLOPT_PROGRESSFUNCTION(3),CURLOPT_XFERINFOFUNCTION(3),- go read those too, iykyk π
with love from libcurl 7.37.0, dated 17 Jun 2014 β now go slay your progress callbacks, bestie ππβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, 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