Extract information from the request header in Fiddler

0

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

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

Any ideas how to do this? remembering that the variable comes in the request header, not the url/uri .

    
asked by anonymous 24.10.2016 / 14:06

1 answer

1

I do not know if I understand very well, but if you want to recover 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 retrieve.

    
24.10.2016 / 14:25