I am currently using a Microsoft IIS8 server as a reverse proxy for URL rewriting. Currently there is the issue, that i need to set a HTTP Request Header on the IIS. I already went ahead and created a blank rule and set the condition. How do i get IIS to set the current Date and Time in a specific format inside the Request Header? Is that even possible without ASP.NET Websites?
I did not find anything like this while reading through the Microsoft references.
Current state of the rule shows the pattern which the date time should be, the header should be overwritten if it does not match:
<rule name="set clientDate">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_CLIENTDATE}" pattern="[0-9]{4}\-[0-9]{2}\-[0-9]{2}\ [0-9]{2}\:[0-9]{2}\:[0-9]{2}" negate="true" />
</conditions>
<action type="None" />
</rule>
Thanks in advance