GNURLOPT_XFERINFODATA(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

✨ 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