Forward slashes being stripped from Request.ServerVariables("HTTP_X_ORIGINAL_URL")

136 views Asked by At

I'm having an issue with the following ASP Server Variable:

Request.ServerVariables("HTTP_X_ORIGINAL_URL")

It is removing instances of multiple forward slashes, so the following URI:

/here/is//my/uri////as/an/example

Is interpreted as:

/here/is/my/uri/as/an/example

It's a fairly standard website setup on IIS 8.5.

Has anyone else come across a similar issue?

1

There are 1 answers

0
Boomfelled On

As suggested by Lex Li, the duplicate slashes are removed by the browser before sending the request to the server.