iis-docs icon indicating copy to clipboard operation
iis-docs copied to clipboard

Update paragraph "using server variables in rewrite rules"

Open CloudCees opened this issue 7 years ago • 6 comments

What is described in paragraph "using server variables in rewrite rules" is not correct. The information In the list about http headers is not correct. A dash in the http header is not converted to an underscore. It should be stated that de underscore from the condition input is converted to a dash. When the statement from the text was true, I could handle a HTTP header with an underscore in it.

CloudCees avatar Oct 15 '18 11:10 CloudCees

~~I just found the page where it is correctly stated: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/url-rewrite-module-20-configuration-reference#accessing-response-headers-from-rewrite-rules~~

~~"All underscore ("_") symbols in the name are converted to dash symbols ("-")."~~

CloudCees avatar Oct 15 '18 12:10 CloudCees

@Cezus You are wrong. This paragraph is talking about incoming requests, while the one you linked is about "responses".

lextm avatar Oct 15 '18 13:10 lextm

@Cezus You are wrong. This paragraph is talking about incoming requests, while the one you linked is about "responses".

You are right, that article does not apply in this matter. But the problem I try to address is still valid. The problem is as following: https://stackoverflow.com/questions/52816655/how-can-url-rewrite-match-http-headers-with-underscores

CloudCees avatar Oct 15 '18 13:10 CloudCees

@John-Hart please review

Rick-Anderson avatar Jan 25 '22 23:01 Rick-Anderson

@ning51 could you please verify this?

John-Hart avatar Jan 26 '22 00:01 John-Hart

@ning51 @John-Hart if this is an improvement, can I S&M. @ning51 can create an issue to track the suggestion.

Rick-Anderson avatar Mar 09 '23 23:03 Rick-Anderson