Tuesday, March 25, 2008

Request Object Properties

The following table lists several properties of the Request object and displays values associated with your current real-time URL request for this page.
Request.UserAgent
The full identification of the browser requesting the page:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)


Request.Browser.Browser
The type of browser making the request:
IE
Request.Browser.Type
The type and major version of the browser making the request:
IE7
Request.Browser.Version
The major and minor versions of the browser request:
7
Request.Browser.MajorVersion
The major version of the browser making the request:
7
Request.Browser.MinorVersion
The minor version of the browser making the request:
0
Request.Browser.AOL
Whether this is an AOL browser:
FALSE
Request.Browser.Frames
Whether the browser supports frames:
TRUE
Request.Browser.JavaScript
Whether the browser supports JavaScript:
TRUE
Request.Browser.Platform
The type of operating system under which the browser is running:
WinXP
Request.IsSecureConnection
Whether the current connection uses a secure Web protocol:
FALSE
Request.UserHostAddress
The IP address from which the browser is requesting the page:
61.8.133.5
Server Properties->
Request.ServerVariables("LOCAL_ADDR")
The IP address of the server hosting the requested page.
168.16.190.175
Request.Url.Host
The URL of the server hosting the requested page:
msconline.maconstate.edu
Request.RawUrl
The portion of the URL request following the domain information:
/tutorials/ASPNET2/ASPNET03/aspnet03-07.aspx
Request.Url.Scheme
The type of URL request:
http
Request.Url.Port
The port through which the URL request is made:
80
Request.ApplicationPath
The virtual path to the root directory containing the page requested by the browser:
/Tutorials
Request.FilePath
The virtual path to the page requested by the browser:
/tutorials/ASPNET2/ASPNET03/aspnet03-07.aspx
Request.PhysicalApplicationPath
The physical path to the root directory of the page requested by the browser:
c:\Tutorials\
Request.PhysicalPath
The physical path to the page requested by the browser:
c:\Tutorials\ASPNET2\ASPNET03\aspnet03-07.aspx

No comments: