title: Returning different page content using DelegatingHandler
body: <p>I was wondering if doing a "redirect" into a subclass of DelegatingHandler would be possible.
  I'm going to explain with an example:</p>
  
  <p>My route, in Global.asax, is as follows</p>
  
  <pre><code>RouteTable.Routes.MapHttpRoute(name: "SavedSearch",
      routeTemplate: "savedSearch/{id}",
      defaults: null,
      constraints: null,
      handler: new SavedSearchDispatcher());
  </code></pre>
  
  <p><code>SavedSearchDispatcher</code> is the name of the subclass of <code>DelegatingHandler</code>.</p>
  
  <p>Inside i tried to do the following</p>
  
  <pre><code>newUri = new Uri("http://localhost/default.aspx"); //&lt;-- this is an authorized page
  HttpRequestMessage rqNew = new HttpRequestMessage(HttpMethod.Get, newUri);
  HttpResponseMessage message = await base.SendAsync(rqNew, cancellationToken);
  </code></pre>
  
  <p>But instead of getting the content of <code>newUri</code>, I'm getting a 404 error</p>
  
  <p>I even tried to get a <code>HttpResponseMessage</code> using <code>HttpClient</code> which worked partially: I get the login form instead of the page content.</p>
  
  <p>I've got the feeling that I'm a step away from the solution... unless I'm fooling myself.</p>