Hello,

I have a question regarding the progress meter.
I use libcurl and part of the easy handle configuration is as follows:
        CHECK_CURL_EASY (curl_easy_setopt (ep->eh, CURLOPT_XFERINFOFUNCTION, 
xfer_cb));
        CHECK_CURL_EASY (curl_easy_setopt (ep->eh, CURLOPT_XFERINFODATA, ep));
        CHECK_CURL_EASY (curl_easy_setopt (ep->eh, CURLOPT_NOPROGRESS, 0L));
        CHECK_CURL_EASY (curl_easy_setopt (ep->eh, CURLOPT_DEBUGFUNCTION, 
curl_debug_cb));
        CHECK_CURL_EASY (curl_easy_setopt (ep->eh, CURLOPT_DEBUGDATA, ep));
        CHECK_CURL_EASY (curl_easy_setopt (ep->eh, CURLOPT_VERBOSE, 1L));
So that I have the xfer callback called (for internal stuff) and debug 
information available when needed (for ... debugging purpose).
What I notice is that when running the application, my output is mixed with 
that of the internal libcurl progress output. Something like that:
        04-19 13:14:41.094  [29302]  curl_debug_cb             (  82)  info: 
Found bundle for host: 0x55dd838c3d10 [can multiplex] (eh 0x55dd83914210)
        04-19 13:14:41.094  [29302]  curl_debug_cb             (  82)  info: 
Multiplexed connection found (eh 0x55dd83914210)
        04-19 13:14:41.094  [29302]  curl_debug_cb             (  82)  info: 
Re-using existing connection #0 with host comm.dev.com (eh 0x55dd83914210)
        04-19 13:14:41.094  [29302]  curl_debug_cb             (  82)  info: 
Transfer was pending, now try another (eh 0x55dd83914210)
        04-19 13:14:41.094  [29302]  xfer_cb                   ( 173)  
0x55dd83914210 : dltotal=0  dlnow=0  ultotal=0  ulnow=0
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                         Dload  Upload   Total   Spent    Left  
Speed
          0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     004-19 13:14:41.096  [29302]  xfer_cb                   ( 173)  
0x55dd83914210 : dltotal=0  dlnow=0  ultotal=0  ulnow=0
        04-19 13:14:41.096  [29302]  curl_debug_cb             (  82)  info: 
h2h3 [:method: GET] (eh 0x55dd83914210)
        04-19 13:14:41.096  [29302]  curl_debug_cb             (  82)  info: 
h2h3 [:path: 
/api/v1/get-configuration-chunks?type=rt2_inet&version=598e4e1f-cfb1-481b-830a-6621d1ee24c8]
 (eh 0x55dd83914210)

Is there a way to silence the internal progress meter ?

Note that I also use the curl command and in that case the progress meter is 
useful, so I suspect that the configure --disable-progress-meter option is not 
a solution.

Thanks,
Arnaud
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to