aspxtreme

HttpRequest Class

System.Web Namespace


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

HttpRequest Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HttpRequest ( String filename , String url , String queryString )

Collapse   Properties

Visibility Name Value Type Accessibility
public AcceptTypes String [ Get ]
public AnonymousID String [ Get ]
public ApplicationPath String [ Get ]
public AppRelativeCurrentExecutionFilePath String [ Get ]
public Browser HttpBrowserCapabilities [ Get , Set ]
public ClientCertificate HttpClientCertificate [ Get ]
public ContentEncoding Encoding [ Get , Set ]
public ContentLength Int32 [ Get ]
public ContentType String [ Get , Set ]
public Cookies HttpCookieCollection [ Get ]
public CurrentExecutionFilePath String [ Get ]
public FilePath String [ Get ]
public Files HttpFileCollection [ Get ]
public Filter Stream [ Get , Set ]
public Form NameValueCollection [ Get ]
public Headers NameValueCollection [ Get ]
public HttpMethod String [ Get ]
public InputStream Stream [ Get ]
public IsAuthenticated Boolean [ Get ]
public IsLocal Boolean [ Get ]
public IsSecureConnection Boolean [ Get ]
public Item ( String key ) String [ Get ]
public LogonUserIdentity WindowsIdentity [ Get ]
public Params NameValueCollection [ Get ]
public Path String [ Get ]
public PathInfo String [ Get ]
public PhysicalApplicationPath String [ Get ]
public PhysicalPath String [ Get ]
public QueryString NameValueCollection [ Get ]
public RawUrl String [ Get ]
public RequestType String [ Get , Set ]
public ServerVariables NameValueCollection [ Get ]
public TotalBytes Int32 [ Get ]
public Url Uri [ Get ]
public UrlReferrer Uri [ Get ]
public UserAgent String [ Get ]
public UserHostAddress String [ Get ]
public UserHostName String [ Get ]
public UserLanguages String [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public BinaryRead ( Int32 count ) Byte
public MapImageCoordinates ( String imageFieldName ) Int32
public MapPath ( String virtualPath ) String
public MapPath ( String virtualPath , String baseVirtualDir , Boolean allowCrossAppMapping ) String
public SaveAs ( String filename , Boolean includeHeaders ) Void
public ValidateInput ( ) Void

Remarks

The members of the HttpRequest class are exposed via the intrinsic Request object, which contains the information that the client browser passed to the server during an HTTP request.

For background information on what makes up an HTTP request message from a client to a server, see Section 5 Request in the Hypertext Transfer Protocol ( HTTP/1.1 ) documentation, available from the World Wide Web Consortium.

Syntax


To set a property or call a method:

Request.propertyName = value;
Request.methodName ( arguments );
  C# VB

To return the value of a property or method:

Type var = Request.propertyName;
Type var = Request.collectionName  [ key ];
Type var = Request.methodName ( arguments );
  C# VB



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme