title: Adding a Http-Header in a HttpModule and read it out from a Page
body: <p>I've tried to write my own HttpModule (IHttpModule) that adds a Header like that:</p>
  
  <pre><code>public class MyModule: IHttpModule
  {
      public void Init(HttpApplication c)
      {
  
          c.BeginRequest += delegate{c.Response.AddHeader("MyHeader", "MyValue");};
      }
  
      public void Dispose(){}
  }
  </code></pre>
  
  <p>and tried to read in a aspx page like that:</p>
  
  <pre><code>var x = Request.ServerVariables["MyHeader"];
  </code></pre>
  
  <p>but it didn't work. Any idea why?</p>