Clearing Default HTTP Headers and Writing RAW HTTP Content
Normally when an ASP.NET Page is executed, it creates some of default HTTP Headers.
As it is shown below for example:
HTTP/1.1 200 OK
Date: Sat, 02 Jul 2005 06:31:53 GMT
Content-Type: text/html; charset=utf-8
This is an example of HTTP Headers of an executed ASP.NET Page Response.
I want to know is there any way to clear all of these headers; and put my own custom HTTP Headers instead of them ?
I know it's possible to Add or Append a Custom Header to Current Page's HTTP Headers with these methods:
And I also know that the Response.ClearHeaders method is designed to CLEAR the output HTTP Headers, but it Doesn't Work :((
All that I want is to Clear the Default HTTP Headers and Write My Own headers instead of them.
Is it possible at all ?
Thanks for reply from anyone.