Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8455859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:23:46+00:00 2026-06-10T12:23:46+00:00

Any libcurl expert who might knows something about it? I notice this because I

  • 0

Any libcurl expert who might knows something about it?

I notice this because I cannot turn libcurl VERBOSE off:

curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);

When I trace thru the call into libcurl, I found that 0L (long) is converted into a non-zero number, causing the VERBOSE to be always on. I haven’t tried but I am pretty sure any long param will not be passed correctly.

data->set.verbose = (0 != va_arg(param, long))?TRUE:FALSE;

where

#define va_arg _crt_va_arg
#define _crt_va_arg(ap,t)    ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
#define _INTSIZEOF(n)   ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )

But I am not sure what these are doing.
Why it this occuring and how to fix it?

I am using Visual Studio 2010 C++ with libcurl 7.27.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:23:47+00:00Added an answer on June 10, 2026 at 12:23 pm

    va_arg() is using pointer arithmetic to extract the 0L from your va_list param. You can read more on the va_list type here or here. It is not converting your 0L to a non-zero number.

    Try calling curl_easy_setopt() before opening your connection. The documentation states that your verbose setting is “set once to go for many independent connections” (urldata.h ln 1537).

    If you still don’t believe it’s working, you can cast your CURL* into a SessionHandle* and inspect it in the debugger, eg:

    struct SessionHandle *data = reinterpret_cast<SessionHandle*>(curl);
    // Inspect data->set.verbose
    

    You’ll find the definition of SessionHandle in urldata.h.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any regex gurus around here? its driving me crazy. Say I have this string:
Has anyone had any success with libcurl and POP3 with APOP authentication? I had
Update: NSURLConnection now seems to properly support 100-Continue. In any case, this answer contains
Is there any other variants to send http/https request from C/C++ except using libCurl?
It has been about a year since I wrote any .dll plugins that use
Does anybody have any experience with libcurl (C/C++) and Kerberos authentication? I am able
I wrote a utility to grab information off the web using libcurl and written
Any way to realize emacs keybind on Qt Creator (QTC)? Some possibilities: emacskeys but
Any idea on how can I track users bookmarking event? I want to find
Any Access guru's out there that can help me out? Trying to figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.