Google+

Sunday, May 1, 2011

Fetch All Information About Client Request


You get all infomation about the client request by request header.In ASP.NET,

 you get all  request header infromation by using these:-

NameValueCollection variables = Request.ServerVariables;

To get user agent information use below :-

            string agent = variables["HTTP_USER_AGENT"];


To get user agent information use below :-


 Request.ServerVariables["HTTP_X_FORWARDED_FOR"]



Note:-Please comment and reply me.

0 comments:

Post a Comment