IIS stops logging all response headers when a certain response header is added

senausm12 1 Reputation point
2021-06-11T20:02:42.227+00:00

I am looking to improve the IIS logging by including certain response headers. However i have found that adding a certain response header results in IIS not logging ANY of the response headers. However when i inspect the response itself the headers are all present.

I'm not sure if this is a character or length issue.

Here is the response header (as confirmed in a powershell request):

Header: RetryAttempts  
Value: MaxCom:3|MaxBE:3|Attempt:1|ComError:-2147164157|Attempt:2|ComError:-2147164157|Attempt:3|TotalAttempt:3|Success:True                                                                                     

If i enable this response header, it and all other fields become blank in the iis log file, represented by a "-".

Any idea what is causing this issue?

Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.