Search code examples
asp.nethttpcontext

What are some good resources for learning about HttpContext, Request and Response?


I'm trying to learn about HttpContext, Request and Response. What are some good resources? I'm especially interested in links to tutorials (basic things).

thanks saj


Solution

  • If you are referring to HttpContext in ASP.Net, it is a key object that exposes the underlying Request (incoming messages) and Response (outgoing message) streams. At a low level, this object is populated by IIS and the ASP.Net framework.

    This means that HttpContext is available to any business object running inside of a .Net web application (not just an ASPX page, ASCX, etc).

    HttpContext.Current provides access to Request, Response, Session, Cache, and more.

    http://msdn.microsoft.com/en-us/library/system.web.httpcontext.aspx

    For HTTP basics such as Request and Response, see the links that Younes provided.