Extract information from requests header in Fiddler

Asked

Viewed 77 times

0

I need to extract information from the header of a request in the app FIDDLER to make a comparison of a context variable that is sent in the header and set routes based on that variable.

In this case, if the variable is value 3, the fiddler should call a route if it is 2 , should call another route!!!

Any idea how to do that? remembering that, the variable comes in the header of request, and not in the url/uri.

1 answer

1


I don’t know if I understand you very well, but if you want to reclaim the value of Header of the request, just do the following:

    var teste = HttpContext.Current.Request.Headers["Content-Type"];

Where Headers["Content-Type"] is the variable you want to recover.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.