Curl CONNECTION OPTIONS

Posted by cinek1lol on Stack Overflow See other posts from Stack Overflow or by cinek1lol
Published on 2010-04-10T20:58:02Z Indexed on 2010/04/10 21:03 UTC
Read the original article Hit count: 294

Filed under:
|

HI I'd like to know how to check out the speed of a file being uploaded in real time using the curl library in c++. This is what I have written:

curl_easy_getinfo(curl,CURLINFO_SPEED_UPLOAD,&c);

But the manual says that it shows average speed, but even this doesn't seem to work with me, because I can only see a 0.

There is one more thing: How to set an upload limit that works, because if I write this:

curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, 100);

I get an error 502 message

plis help

© Stack Overflow or respective owner

Related posts about curl

Related posts about c++