In this blog we are going to see, How to get the complete information on HTTP Request, HTTP Response and Server using asp.net c#.
Step 1: Used Namespace
using System.Web;
Step 2:
Helps to get
Complete information about the server.
public static HttpServerUtility
GetCurrentServerInformation()
{
return
HttpContext.Current.Server;
}
Step 3:
Helps to get
Complete infomation about the HttpRequest.
public static HttpRequest
GetCurrentHttpRequestInformation()
{
return
HttpContext.Current.Request;
}
Step 4:
Helps to get
Complete infomation about the HttpResponse.
public static HttpResponse
GetCurrentHttpResponseInformation()
{
return
HttpContext.Current.Response;
}
Thanks for reading. :)

Join the conversation! Your thoughts help the community grow.