title: HttpHandler and XML files
body: <p>I would like to intercept any request made to the server for XML files. I thought that it might be possible with an HttpHandler. It's coded and it works... on localhost only (?!?!).</p>
  
  <p>So, why is it working on localhost only? Here is my web.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;system.web&gt;
      &lt;httpHandlers&gt;
        &lt;add verb="*" path="*.xml" type="FooBar.XmlHandler, FooBar" /&gt;
      &lt;/httpHandlers&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Here is my C# :</p>
  
  <pre><code>namespace FooBar
  {
      public class XmlHandler : IHttpHandler
      {
          public bool IsReusable
          {
              get { return false; }
          }
  
          public void ProcessRequest(HttpContext context)
          {
              HttpResponse Response = context.Response;
              Response.Write(xmlString);
          }
      }
  }
  </code></pre>
  
  <p>As you might have seen, I'm writing the xmlString directly in the response, it's only temporary because I'm still wondering how I could give the filename instead (that's the second question ;) )</p>
  
  <p>What is supposed to be written in the response is only the xml filename that will be retrieved by a flash app.</p>
  
  <p>Thanks</p>
  
  <p>Details : <br>
  Using IIS 6.0 on Windows Server 2003.</p>
  
  <p><strong>Edit :</strong><br>
  When calling the page from another computer it looks like it's not getting to the HttpHandler. However, the mapping for IIS have been done correctly.</p>