CURL_MULTI_NOTIFY_DISABLE(3)

πŸ’… curl_multi_notify_disable(3) β€” like, the manual page bestie πŸ’…

okay so this is a page from the Library Functions Manual, and it's literally all about curl_multi_notify_disable β€” the function that turns a notification type OFF in your multi handle. yes queen, we're unsubscribing ✨


✨ NAME ✨

curl_multi_notify_disable β€” disable a notification type πŸš«πŸ””


🌸 SYNOPSIS 🌸

#include <curl/curl.h>
CURLMcode curl_multi_notify_disable(CURLM *multi_handle,
                                    unsigned int notification);

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically πŸ’β€β™€οΈ this disables collecting the given notification type in the multi handle. meaning: a callback function you installed via CURLMOPT_NOTIFYFUNCTION(3) is no longer called when this notification happens. she's muted, periodt. πŸ”‡

And listen β€” notifications only get collected and dispatched to the callback when both things are true: a notification callback is installed and that notification is enabled. no callback or no enable = nothing to collect, iykyk πŸ’…

The good news? Several notification types can be enabled at the same time. it's giving multitasking main character energy πŸ‘‘ and disabling a notification that's already disabled is not an error β€” no drama, no cap. 🫢

Feeling regret? you can always enable a notification again via curl_multi_notify_enable(3). we love a comeback arc. πŸŽ€


🌈 PROTOCOLS 🌈

This functionality affects all supported protocols β€” every single one, bestie. πŸ”₯


πŸ“ EXAMPLE πŸ“

int main(void)
{
  int rc;
  CURLM *multi = curl_multi_init();

  rc = curl_multi_notify_disable(multi, CURLMNOTIFY_INFO_READ);
}

look at her go 😭 so simple, so iconic.


⭐ AVAILABILITY ⭐

Added in curl 8.17.0 β€” so if you're on something older, she's not there yet, check your version bestie πŸ™ˆ


πŸ’€ RETURN VALUE πŸ’€

This function returns a CURLMcode indicating success or error. classic. πŸ’…

  • CURLM_OK (0) means everything was OK πŸŽ‰
  • non-zero means an error occurred β€” go check libcurl-errors(3) πŸ‘€
⚠️ heads up: the return code is for the whole multi stack. Problems still might have occurred on individual transfers even when one of these functions returns OK. so don't get too comfortable, ngl 😭

🧚 SEE ALSO 🧚


and that's the whole page, bestie πŸ’– this was libcurl, dated 2026-10-25 β€” go forth and disable your notifications responsibly, mwah πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from