ASP.Net: HTTP 400 Bad Request error when trying to process http://localhost:5957/http://yahoo.com

后端 未结 12 2412
小鲜肉
小鲜肉 2020-12-21 02:04

I\'m trying to create something similar to the diggbar.

I\'m using Visual Studio 2010 and Asp Development server.

However, I can\'t get the ASP dev server

12条回答
  •  旧时难觅i
    2020-12-21 02:59

    I answered a similar question here.

    https://stackoverflow.com/a/12037000/134761

    Basically, ASP.net only accepts encoded characters such as colon after the question mark. Fortunately ASP.net MVC automatically maps both /api/persons/xxxx and /api/persons?id=xxxx equally in the default mapping, so that is what I ended up doing.

提交回复
热议问题