Boomfelled
Boomfelled

Reputation: 535

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

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?

Upvotes: 0

Views: 166

Answers (1)

Boomfelled
Boomfelled

Reputation: 535

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

Upvotes: 0

Related Questions