Request. Save As(String, Boolean) Method
Saves an HTTP request to disk.
public: void SaveAs(System::String ^ filename, bool includeHeaders);
public void SaveAs (string filename, bool includeHeaders);
member this.SaveAs : string * bool -> unit
Public Sub SaveAs (filename As String, includeHeaders As Boolean)
The physical drive path.
A Boolean value specifying whether an HTTP header should be saved to disk.
The following code example calls the SaveAs method when a page is loaded. The call specifies that the request be saved as a text file in a directory where the ASP.NET process identity has been granted write permissions, and that any header information included in the request is included in the file.
Saving the request context to disk can be useful in debugging.