Set a user agent for URL requests.