Simple HTTP Server In C#


 

SimpleHttpServer

This is a simple web server that I've quicklyhacked up. It hosts files, ASP files, ASP.NET applications (using thedotnet framework). See the README for more information. It was written using C#.

What it can do:

  • Runs ASP.NET, ASP and normal webfiles (html, files and whatever) outside of IIS.
  • Accepts HTTP/1.0 and HTTP/1.1

What it can't do:

  • Alot! There isn't any security precautions, proper parsing or any ISAPIsupport (actually, no hooks at all). But remember, it's just a quickhack. =)
  • UPDATE!!! This has now been added in the Beta download. — Noquerystring support yet. It can handle POST no problems. In the nextfew days I'll have it fixed so querystring is supported (along withquerystring + post at the same time).
  • Directory listings.

What it may be able to do in the future:

  • Hosting of Webservices!!! Yes, I'm currently looking into how to hook that in. Give me a couple of weeks. =)

Download

UPDATE! The beta version (querystring support,post support, no combination support however) is available. I recommendthis code over the previous alpha version. Bug fixes, more stuff works.Elementry Soap stuff too. Find it here: SimpleHttpServerBeta.zip

You can download the server with full source at: SimpleHttpServer.zip or, you can alternatively have a look at the source online at here.

Requirements

  • .NET framework

Please, please send me comments and feedback! e-mail me joel@collude.com.au. Oh, and i'm well aware that this is not complete, it's just a work in progress thats GPL'd open source and could be used as a very simple example.

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

No comments yet... Be the first to leave a reply!