This output is sent to stderr. So, to get everything you need, redirect stream 2 (stderr) to a file as
curl -o responseFile.html http://www.somewhere.com 2> informationFile.txt
But, as your capture shows, times do not always turn on.
, , - curl . -w. ,
curl -o responseFile.html http://www.somewhere.com -w "%{response_code};%{time_total}" > dataFile.txt 2> informationFile.txt
, responseFile.html( ), (stderr stream 2) informationFile.txt, dataFile. TXT