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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -