views:

157

answers:

1

I want to have a test that testing the inexistent of this http headers, using NAnt and NUnit:

X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET

Edit: I'm asking hot to actually test this rule: "don't have asp headers". so, I can have this test in each new website that I'm doing, so it make it easier no to forget this simple step.

+1  A: 

I would make an HttpWebRequest to your app then check to see if the response contains those headers.

David
Nice idea.  
stacker