开发者

Sending a POST request with the request URI of '/' to the Cassini Web Server leading to a 405 error. Why?

I am sending a POST request using HTTPWebRequest from the client to the Cassini Web Server on the remote machine confi开发者_StackOverflow社区gured to accept remote requests. But, I am not specifying a file as part of the URL. I am sending the request directly to the server as in "http://172.34.142.12:8080/". However, I am unable to receive a proper response and getting a "405 Method not allowed" error. I am using Cassini 3.5. Any suggestions as to why this might be happening?


Cassini is hardcoded to not accept requests from any host other than the one running it. It's programmed this way for security reasons.

If you really need this functionality, you'll have to build your own version of it. There's a few walkthroughs around on how to do this, here's one.


My company makes a product called the Neokernel that might help you: www.neokernel.com

The Neokernel is NOT based on Cassini. It is a professional, embeddable ASP.NET web server in a small, self contained assembly with logging, SSL, support for multiple ASP.NET apps, programmatic configuration, support for virtual directories, and it runs any web app that IIS does. It also works with the Mono framework; we developed it because there are a number of problems with Cassini (and the various projects derived from it).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜