CURLOPT_NOPROGRESS(3)
β¨ CURLOPT_NOPROGRESS(3) β¨
okay so this is a page from the Library Functions Manual, and honestly bestie, it's a little one but it's lowkey iconic β it's the switch that turns the whole progress meter off. π
π NAME π
CURLOPT_NOPROGRESS β switch off the progress meter
π¦ SYNOPSIS π¦
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_NOPROGRESS, long onoff);
π DESCRIPTION π
So, if onoff is to 1, it tells the library to shut off the progress meter completely for requests done with this handle. Like, gone. No little spinning bar, no percentages, nothing. π
And not only that β it also prevents CURLOPT_XFERINFOFUNCTION(3) or CURLOPT_PROGRESSFUNCTION(3) from getting called at all. So if you set this thing, don't be surprised when your callback is just sitting there, never being invited to the party. π
π DEFAULT π
1, meaning it normally runs without a progress meter. yep, quiet by default, main character energy who doesn't need to announce herself. β¨
π PROTOCOLS π
This functionality affects all supported protocols β every single one, no cap. π
π§ EXAMPLE π§
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
/* enable progress meter */
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
/* Perform the request */
curl_easy_perform(curl);
}
}
see how it's set to 0L there? that's the "no wait, actually do show me the progress meter" move. ate. π
β AVAILABILITY β
Added in curl 7.1 β yeah she's been around a minute, a true veteran of the game. π«Ά
π₯ RETURN VALUE π₯
curl_easy_setopt(3) returns a CURLcode indicating success or error.
CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). Not me hoping you never see the non-zero one π
πΈ SEE ALSO πΈ
ok go read those too bestie, iykyk β they're all in the same friend group π«Ά
kisses, this was libcurl, dated 2026-10-12 β mwah π
π¦ where this page comes from
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms