I'm having a problem with a request i send to my .net core web API.
The request contains a path variable with a tilde ('~') followed by a number. For example:
GET 'https://example.com/v1/Books/details/~0~~9600131~BookTitle'
The error is a 404 with message:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
The weird part is that this request is working in our testing environment. This environment is almost identical to our production.
Are there any IIS settings I could check, that could explain these differences?
Edit: Seems like the problem is related to ~{Numeric Character}.
~2 doesn't work but
~~ or ~g works
IIS 8.5
question from:
https://stackoverflow.com/questions/65920553/iis-8-5-404-response-when-requests-contains-a-tilde 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…