There's a better way to get this in Web API:

```C#
object value;
if (Request.Properties.TryGetValue("MS_HttpContext", out value))
{
    var context = value as HttpContextBase;
}
```