Export (0) Print
Expand All
0 out of 4 rated this helpful - Rate this topic

HttpRequest Members

Enables ASP.NET to read the HTTP values sent by a client during a Web request.

The following tables list the members exposed by the HttpRequest type.

  Name Description
Public method HttpRequest Initializes an HttpRequest object.
Top
  Name Description
Public property AcceptTypes Gets a string array of client-supported MIME accept types.
Public property AnonymousID Gets the anonymous identifier for the user, if present.
Public property ApplicationPath Gets the ASP.NET application's virtual application root path on the server.
Public property AppRelativeCurrentExecutionFilePath 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").
Public property Browser Gets or sets information about the requesting client's browser capabilities.
Public property ClientCertificate Gets the current request's client security certificate.
Public property ContentEncoding Gets or sets the character set of the entity-body.
Public property ContentLength Specifies the length, in bytes, of content sent by the client.
Public property ContentType Gets or sets the MIME content type of the incoming request.
Public property Cookies Gets a collection of cookies sent by the client.
Public property CurrentExecutionFilePath Gets the virtual path of the current request.
Public property FilePath Gets the virtual path of the current request.
Public property Files Gets the collection of files uploaded by the client, in multipart MIME format.
Public property Filter Gets or sets the filter to use when reading the current input stream.
Public property Form Gets a collection of form variables.
Public property Headers Gets a collection of HTTP headers.
Public property HttpMethod Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client.
Public property InputStream Gets the contents of the incoming HTTP entity body.
Public property IsAuthenticated Gets a value indicating whether the request has been authenticated.
Public property IsLocal Gets a value indicating whether the request is from the local computer.
Public property IsSecureConnection Gets a value indicting whether the HTTP connection uses secure sockets (that is, HTTPS).
Public property Item Gets the specified object from the Cookies, Form, QueryString or ServerVariables collections.
Public property LogonUserIdentity Gets the WindowsIdentity type for the current user.
Public property Params Gets a combined collection of QueryString, Form, ServerVariables, and Cookies items.
Public property Path Gets the virtual path of the current request.
Public property PathInfo Gets additional path information for a resource with a URL extension.
Public property PhysicalApplicationPath Gets the physical file system path of the currently executing server application's root directory.
Public property PhysicalPath Gets the physical file system path corresponding to the requested URL.
Public property QueryString Gets the collection of HTTP query string variables.
Public property RawUrl Gets the raw URL of the current request.
Public property RequestType Gets or sets the HTTP data transfer method (GET or POST) used by the client.
Public property ServerVariables Gets a collection of Web server variables.
Public property TotalBytes Gets the number of bytes in the current input stream.
Public property Url Gets information about the URL of the current request.
Public property UrlReferrer Gets information about the URL of the client's previous request that linked to the current URL.
Public property UserAgent Gets the raw user agent string of the client browser.
Public property UserHostAddress Gets the IP host address of the remote client.
Public property UserHostName Gets the DNS name of the remote client.
Public property UserLanguages Gets a sorted string array of client language preferences.
Top
(see also Protected Methods )
  Name Description
Public method BinaryRead Performs a binary read of a specified number of bytes from the current input stream.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method MapImageCoordinates Maps an incoming image-field form parameter to appropriate x-coordinate and y-coordinate values.
Public method MapPath Overloaded. Maps the virtual path in the requested URL to a physical path on the server for the current request.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SaveAs Saves an HTTP request to disk.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method ValidateInput Causes validation to occur for the collections accessed through the Cookies, Form, and QueryString properties.
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.