How can I access header information from an HTTP message in C #?

I am developing an MVC web application and I need to find a way to access the HTTP header information that is being called from another application / source. So, all I want my application to do is listen to the HTTP message on a specific view, and then extract the information from its header, any ideas.

thank

+3
source share
2 answers

Use Request.Headersthat will provide you everything the client has sent:

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

+2
source

In your controller, use Request.Headers.

+4
source

All Articles