System.Web.HttpRequest Members

The members of System.Web.HttpRequest are listed below.

See Also: Inherited members from System.Object

Public Constructors

Public Properties

[read-only]
AcceptTypesstring[].

Gets a string array of client-supported MIME accept types.

[read-only]
AnonymousIDstring.

Gets the anonymous identifier for the user, if present.

[read-only]
ApplicationPathstring.

Gets the ASP.NET application's virtual application root path on the server.

[read-only]
AppRelativeCurrentExecutionFilePathstring.

Gets the virtual path of the application root and makes it relative by using the tilde (~) notation for the application root (as in "~/page.aspx").

BrowserHttpBrowserCapabilities.

Gets or sets information about the requesting client's browser capabilities.

[read-only]
ClientCertificateHttpClientCertificate.

Gets the current request's client security certificate.

ContentEncodingSystem.Text.Encoding.

Gets or sets the character set of the entity-body.

[read-only]
ContentLengthint.

Specifies the length, in bytes, of content sent by the client.

ContentTypestring.

Gets or sets the MIME content type of the incoming request.

[read-only]
CookiesHttpCookieCollection.

Gets a collection of cookies sent by the client.

[read-only]
CurrentExecutionFilePathstring.

Gets the virtual path of the current request.

[read-only]
FilePathstring.

Gets the virtual path of the current request.

[read-only]
FilesHttpFileCollection.

Gets the collection of files uploaded by the client, in multipart MIME format.

FilterSystem.IO.Stream.

Gets or sets the filter to use when reading the current input stream.

[read-only]
FormSystem.Collections.Specialized.NameValueCollection.

Gets a collection of form variables.

[read-only]
HeadersSystem.Collections.Specialized.NameValueCollection.

Gets a collection of HTTP headers.

[read-only]
HttpMethodstring.

Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client.

[read-only]
InputStreamSystem.IO.Stream.

Gets the contents of the incoming HTTP entity body.

[read-only]
IsAuthenticatedbool.

Gets a value indicating whether the request has been authenticated.

[read-only]
IsLocalbool.

Gets a value indicating whether the request is from the local computer.

[read-only]
IsSecureConnectionbool.

Gets a value indicating whether the HTTP connection uses secure sockets (that is, HTTPS).

[read-only]
default property
Item(string)string. Documentation for this section has not yet been entered.
[read-only]
LogonUserIdentitySystem.Security.Principal.WindowsIdentity.

Gets the System.Security.Principal.WindowsIdentity type for the current user.

[read-only]
ParamsSystem.Collections.Specialized.NameValueCollection.

Gets a combined collection of HttpRequest.QueryString, HttpRequest.Form, HttpRequest.Cookies, and HttpRequest.ServerVariables items.

[read-only]
Pathstring.

Gets the virtual path of the current request.

[read-only]
PathInfostring.

Gets additional path information for a resource with a URL extension.

[read-only]
PhysicalApplicationPathstring.

Gets the physical file system path of the currently executing server application's root directory.

[read-only]
PhysicalPathstring.

Gets the physical file system path corresponding to the requested URL.

[read-only]
QueryStringSystem.Collections.Specialized.NameValueCollection.

Gets the collection of HTTP query string variables.

[read-only]
RawUrlstring.

Gets the raw URL of the current request.

RequestTypestring.

Gets or sets the HTTP data transfer method (GET or POST) used by the client.

[read-only]
ServerVariablesSystem.Collections.Specialized.NameValueCollection.

Gets a collection of Web server variables.

[read-only]
TotalBytesint.

Gets the number of bytes in the current input stream.

[read-only]
UrlUri.

Gets information about the URL of the current request.

[read-only]
UrlReferrerUri.

Gets information about the URL of the client's previous request that linked to the current URL.

[read-only]
UserAgentstring.

Gets the raw user agent string of the client browser.

[read-only]
UserHostAddressstring.

Gets the IP host address of the remote client.

[read-only]
UserHostNamestring.

Gets the DNS name of the remote client.

[read-only]
UserLanguagesstring[].

Gets a sorted string array of client language preferences.

Public Methods

BinaryRead(int) : byte[]

Performs a binary read of a specified number of bytes from the current input stream.

MapImageCoordinates(string) : int[]

Maps an incoming image-field form parameter to appropriate x-coordinate and y-coordinate values.

MapPath(string) : string

Maps the specified virtual path to a physical path.

MapPath(string, string, bool) : string

Maps the specified virtual path to a physical path.

SaveAs(string, bool)

Saves an HTTP request to disk.

ValidateInput()

Causes validation to occur for the collections accessed through the HttpRequest.Cookies, HttpRequest.Form, and HttpRequest.QueryString properties.