title: RESTSharp unable to find location header
body: <p>I have an async Task in C# that returns</p>
  
  <pre><code>Task&lt;HttpResponseMessage&gt;
  </code></pre>
  
  <p>Code as follows</p>
  
  <pre><code>HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Moved);
  response.Headers.Location = new Uri(new Shared().ToAbsoluteUrl("~/html/fail.aspx"));
  return response;
  </code></pre>
  
  <p>On codebehind of an ASPX page I have the following code</p>
  
  <pre><code>IRestResponse response = client.Execute(request);
  
  if (response.Headers.Any(t =&gt; t.Name == "Location"))
  {
      string location = response.Headers.FirstOrDefault(t =&gt; t.Name == "Location").Value.ToString();
  }
  </code></pre>
  
  <p>PROBLEM: I am unable to retrieve the location header value in codebehind. Any ideas? </p>