title: User-Agent in mvc 5 application
body: <p>I Have a MVC 5 application whose back-end is web API. For each request to my server I need to provide user-agent which I can get in controller action method like <code>var UserAgent = Request.UserAgent.ToString();</code> and pass subsequently in other class like (<strong>Controller => Service => HttpRequester => XXXHttpClient</strong>) and finally use in actual request in <strong>XXXHttpClient</strong> class but I think there could be a better way to achieve the same. I tried to google it but didn't find anything relevant so can anyone guide me what would be the best practice If I want to get user-agent directly in XXXHttpClient class instead of passing subsequently.</p>