Added the user agent header to the curl request. Suggested by dtbaker TF author.