This documentation is archived and is not being maintained.
HttpRequest::SaveAs Method
Visual Studio 2010
Saves an HTTP request to disk.
Assembly: System.Web (in System.Web.dll)
Parameters
- filename
- Type: System::String
The physical drive path.
- includeHeaders
- Type: System::Boolean
A Boolean value specifying whether an HTTP header should be saved to disk.
| Exception | Condition |
|---|---|
| HttpException | The RequireRootedSaveAsPath property of the HttpRuntimeSection is set to true but filename is not an absolute path. |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: