Andrew Song
Andrew Song

Reputation: 3128

Allow special charcters in IIS request URLs

Currently, when I try to hit certain pages of my site via something like http://www.domain.com/< (which is a valid URL), I get a blank page with the text "Bad Request" on it (and nothing else). This happens with both the escaped and unescaped version of the URL.

I'm fairly certain this is due to IIS6 not liking the < character (which, in general, is valid). Is there a way to stop IIS6 from filtering these characters and giving me this error page?

(I've found similar solutions for IIS7, but nothing has worked in IIS6 so far.)

UPDATE: The URL is being transformed already, ie. hitting domain.com/%3C will also give the "Bad Request" page.

Upvotes: 1

Views: 1967

Answers (2)

Wyatt Barnett
Wyatt Barnett

Reputation: 15673

Not sure if this will work, but this got me out of a similar jam caused by design types forgetting key parts of query strings. Sounds like you might have a similar issue. Anyhow, try making a virtual directory called %3c and then having that redirect to where appropriate.

Upvotes: 1

David
David

Reputation: 15360

RFC 1738:

Thus, only alphanumerics, the special characters "$-_.+!*'(),", and reserved characters used for their reserved purposes may be used unencoded within a URL.

< transforms to %3C

https://stackoverflow.com/<

Upvotes: 0

Related Questions