Saving HTTP requests for better debugging :
Ever noticed the SaveAs method in the HttpRequest class which is the actual Request object for a context. The SaveAs method of the Request object saves the current HTTP request to a file, which can be very useful for logging and debugging reasons. You should pass True to its second argument if you want to save HTTP headers as well. Helps in many situations when you exactly want to know what the header for the request looks like :)
Request.SaveAs "c:\myrequest.txt", True
The saved file contains something like this:
GET /Play/RequestForm.aspx HTTP/1.1
Connection: Keep-Alive
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Cookie: LastVisitDate=4%2F11%2F2003+5%3A02%3A46+PM; ASP.NET_SessionId=ee4mi0ugensntgvkfjt0v4nd
Host: localhost
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3512)
Happy Reading !