GNURLOPT_VERBOSE(3)

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

πŸ’… NAME β€” GNURLOPT_VERBOSE(3) edition πŸ’–

okay so bestie, welcome to GNURLOPT_VERBOSE(3), part of the curl_easy_setopt options family ✨. This is the page for CURLOPT_VERBOSE β€” set verbose mode on/off. That's the assignment, no cap.

  • CURLOPT_VERBOSE β€” set verbose mode on/off. periodt πŸ’…

✨ SYNOPSIS ✨

the sacred summoning spell, exactly as written:

#include <gnurl/curl.h>

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_VERBOSE, long onoff);

πŸ¦‹ DESCRIPTION πŸ¦‹

Set the onoff parameter to 1 to make the library display a lot of verbose information about its operations on this handle. Very useful for libcurl and/or protocol debugging and understanding. The verbose information will be sent to stderr, or the stream set with CURLOPT_STDERR(3).

🚨 real talk, bestie: you hardly ever want this set in production use. You will almost always want this when you debug/report problems.

To also get all the protocol data sent and received, consider using CURLOPT_DEBUGFUNCTION(3). That's the extra-lore option, iykyk πŸ”₯.

πŸŽ€ DEFAULT πŸŽ€

0, meaning disabled. so it's off unless you say otherwise, bestie πŸ’€.

🌈 PROTOCOLS 🌈

All β€” every single one, slay.

πŸ”₯ EXAMPLE πŸ”₯

here's the whole little ritual, copied exactly:

CURL *curl = curl_easy_init();
if(curl) {
  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");

  /* ask libcurl to show us the verbose output */
  curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);

  /* Perform the request */
  curl_easy_perform(curl);
}

⭐ AVAILABILITY ⭐

Always β€” it's giving timeless icon behavior πŸ‘‘.

πŸ’œ RETURN VALUE πŸ’œ

Returns CURLE_OK β€” that's the good ending, periodt πŸ’–.

πŸ‘‘ SEE ALSO πŸ‘‘

The SEE ALSO besties are: CURLOPT_STDERR(3), CURLOPT_DEBUGFUNCTION(3), CURLOPT_ERRORBUFFER(3), β€” yes, the trailing comma is real, no cap πŸ’…


and that's the page, bestie 🫢 β€” brought to you by libcurl 7.37.0, dated 16 Jun 2014, with GNURLOPT_VERBOSE(3) energy all over it. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from