Set useragent in CM_Util::getContents

because some servers expect there to be a Useragent header
Merge pull request #1163 from njam/issue-1163

Set useragent in CM_Util::getContents