curl-library
CURLINFO_SPEED_DOWNLOAD_T not working
From: David L. <torbo18_at_gmx.com>
Date: Sat, 31 Mar 2018 09:42:21 +0200
Date: Sat, 31 Mar 2018 09:42:21 +0200
Hi.
I have a couple questions about CURLINFO_SPEED_DOWNLOAD_T.
First, I don't understand the example in the documentation:
https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_DOWNLOAD_T.html
The output seems to go into curl_off_t speed but then it is not referenced in the printf statement. Where does "ul" come from?
Second, when I tried to use this function the returned value was negative. How is that possible? If it wasn't supported, I should have gotten CURLE_UNKNOWN_OPTION (48), right? My downloaded completed and was very fast (downloading from my LAN). I used the curl_easy_perform function to perform the download.
Thanks!
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-03-31