title: Web api HttpContext.Current.Request.UserAgent is always null
body: <p>I'm trying to get some of api users request information like the device that they use and the operating system so I tried it like this :</p>
  
  <pre><code>private string GetDeviceInfo()
      {
          var userAgent = HttpContext.Current.Request.UserAgent;
          var uaParser = Parser.GetDefault();
          var c = uaParser.Parse(userAgent);
          return c.Device + "|" + c.OS + "|" + c.UserAgent;
      }
  </code></pre>
  
  <p>but the <code>HttpContext.Current.Request.UserAgent</code> is always null !. I searched about it and tried this <a href="https://stackoverflow.com/questions/17364801/how-to-get-ipaddress-and-useragent-in-asp-net-web-api-get-methods">link</a> , could you please tell me what is wrong?</p>