
320
|
Chapter 16: The HttpRequest Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Comments/Troubleshooting
In ASP, the Request object provided relatively few properties and methods (one
each, in fact), supplying most of the information from requests through its collec-
tions: ClientCertificate, Cookies, Form, QueryString, and in particular, the
ServerVariables collection. With the exception of ClientCertificate (which now
returns an instance of the
HttpClientCertificate class representing the client’s
security certificate settings), all of these collections also exist in ASP.NET. A big
difference is that the
HttpRequest class exposes a substantial number of new prop-
erties (many of which are derived from information that was previously available
only through the ServerVariables collection), as well as several new methods.
As was the case with ASP, you can request particular GET or POST values (or
ServerVariable or Cookie values, for that matter) by passing the key for the value
to the Request object (the current instance of the
HttpRequest class):
Message.Text = Request("myKey")
Browser Form SaveAs
ClientCertificate Headers
ContentEncoding Params
ContentLength QueryString
ContentType ServerVariables
FilePath
HttpMethod
InputStream
IsAuthenticated
IsSecureConnection
Path
PathInfo
PhysicalApplicationPath
PhysicalPath
RawUrl
RequestType
TotalBytes ...