Hi there!
We have tried to come up with a work-around, but we could not. It seems to be not possible to add server header to the response. We compared the behavior with Microsoft Visual Studio Development Web Server (WebDev) and IIS 5.1, and noticed that while IIS 5 does allow adding extra headers, WebDev does not. Here is a snippet of code we tested:
Code:protected void Page_Load(object sender, EventArgs e)
{
this.Response.AddHeader("Server", "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW");
}
Here's the set of WebDev headers the way they look on the wire:
Code:HTTP/1.1 200 OK
Server: ASP.NET Development Server/9.0.0.0
Date: Thu, 12 Nov 2009 14:52:17 GMT
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 494
Connection: Close
Here's how IIS headers for the same code:
Code:HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Thu, 12 Nov 2009 14:51:09 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Server: WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 494
Could you please let us know what is the business case for this? Why an application would use a header reserved for web servers? If there is a legitimate case, we may consider adding it to the next release of UltiDev Cassini.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.