Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpRequest Properties

The properties of the HttpRequest class are listed here. For a complete list of HttpRequest class members, see the HttpRequest Members topic.

Public Properties

public propertyAcceptTypes Gets a string array of client-supported MIME accept types.
public propertyApplicationPath Gets the ASP.NET application's virtual application root path on the server.
public propertyBrowser Gets information about the requesting client's browser capabilities.
public propertyClientCertificate Gets the current request's client security certificate.
public propertyContentEncoding Gets or sets the character set of the entity-body.
public propertyContentLength Specifies the length, in bytes, of content sent by the client.
public propertyContentType Gets or sets the MIME content type of the incoming request.
public propertyCookies Gets a collection of cookies sent by the client.
public propertyCurrentExecutionFilePath Gets the virtual path of the current request.
public propertyFilePath Gets the virtual path of the current request.
public propertyFiles Gets the collection of client-uploaded files (Multipart MIME format).
public propertyFilter Gets or sets the filter to use when reading the current input stream.
public propertyForm Gets a collection of form variables.
public propertyHeaders Gets a collection of HTTP headers.
public propertyHttpMethod Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client.
public propertyInputStream Gets the contents of the incoming HTTP entity body.
public propertyIsAuthenticated Gets a value indicating whether the user has been authenticated.
public propertyIsSecureConnection Gets a value indicting whether the HTTP connection uses secure sockets (that is, HTTPS).
public propertyItem Gets the specified object in the Cookies, Form, QueryString or ServerVariables collections.

In C#, this property is the indexer for the HttpRequest class.

public propertyParams Gets a combined collection of QueryString, Form, ServerVariables, and Cookies items.
public propertyPath Gets the virtual path of the current request.
public propertyPathInfo Gets additional path information for a resource with a URL extension.
public propertyPhysicalApplicationPath Gets the physical file system path of the currently executing server application's root directory.
public propertyPhysicalPath Gets the physical file system path corresponding to the requested URL.
public propertyQueryString Gets the collection of HTTP query string variables.
public propertyRawUrl Gets the raw URL of the current request.
public propertyRequestType Gets or sets the HTTP data transfer method (GET or POST) used by the client.
public propertyServerVariables Gets a collection of Web server variables.
public propertyTotalBytes Gets the number of bytes in the current input stream.
public propertyUrl Gets Information about the URL of the current request.
public propertyUrlReferrer Gets information about the URL of the client's previous request that linked to the current URL.
public propertyUserAgent Gets the raw user agent string of the client browser.
public propertyUserHostAddress Gets the IP host address of the remote client.
public propertyUserHostName Gets the DNS name of the remote client.
public propertyUserLanguages Gets a sorted string array of client language preferences.

See Also

HttpRequest Class | System.Web Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.