Why does Cassini handle URI: s with multiple slashes as a bad request?

I am trying to get this behavior from my web server dev [1] and my test environment [2], and now I am looking at why dev returns an HTTP 400 Bad Request with this URI?

http: // localhost: 1234 / v1 // Dy888 / 1/1234567815 / swlocation? fv = 24 & sv2 = 3 & sv3 = 5

(Note the two slashes after "v1".)

[1] Cassini in VS2008 [2] Win Server 2008 with IIS7

Thanks in advance! - Niklas

PS. I started this search with this question, where I was told that the URI mentioned above should not generate Bad Request at all:

IIS7 DOES NOT return HTTP 400 for a bad DS request .

+3
source share
1 answer

You should not expect similar behavior between the ASP.NET Development Server built into Visual Studio and the IIS Web server.

Typically, these are two different web servers with different code bases and different sets of functions. Even if they should behave in a similar way (something that they definitely do not have, for example, web server functions such as SSL, URL rewriting rules, etc.), they never expected them to do this.

This is another reason Microsoft stopped developing for ASP.NET Development Server and implemented IIS Express to get your development and your production web server back to the same page.

So my recommendation for you:

  • Stop Using ASP.NET Development Server
  • IIS Express
  • , !
    / IIS !

, !

+1

Source: https://habr.com/ru/post/1780485/


All Articles