C++ display cURL progress meter during download -
i going attempt display progress meter during curl download using system() command. following method,
char command[] = "curl -c cookies.txt -b cookies.txt -k https://www.example.com/data/format/json' > ~/location/file.json"; system( command );
the progress meter (pretty seen here) printed stdout, need somehow capture display in app. code halted @ system()
command until download finished, don't seem have way of doing in code while curl command downloading.
so i'm wondering if i'm missing magical curl option, if there alternatives or methods system()
may have missed, or if has other helpful pointers how progress meter may piped stringstream in real-time, or that.
mac 10.8.5
Comments
Post a Comment