title: 403 forbidden caused by response object?
body: <p>In my server side code I'm creating the following response object:</p>
  
  <pre><code>var response = HttpContext.Current.Response;
                  response.Clear();
                  response.AddHeader("Content-Type", content.Type);
                  response.AddHeader("Content-Length", content.Length.ToString());
                  response.AddHeader("Content-Disposition",
                  string.Format("attachment; filename={0}; size={1}", Server.UrlEncode(content.FileName), content.Length.ToString()));
                  response.Flush();
                  response.BinaryWrite(content.Image);
                  response.Flush();
  </code></pre>
  
  <p>Is it possible something in this response object is causing the 403 and if so what?  If I just run a blank aspx page I don't get a 403 it is only when it goes through the above code that a 403 occurs.</p>