Save curl download statistics / log
Here is the unabstracted version.
curl -s -S -n http://speedtest.fremont.linode.com/100MB-fremont.bin -o /dev/null -w "%{time_total},%{size_download},%{speed_download}\n" >> stats.log
Only the stdout get redirected by the -o flag.
For the -o flag the man page states:
-o/--output <file> Write output to <file> instead of stdout...
If you want stderr, you need something like this:
curl -n agent.mtconnect.org/sample\?interval=0 >> xml_stream.log 2>> dl.log