| Printable Version
Simple HTTP Server In C#
By Joel Pobar
SimpleHttpServer
This is a simple web server that I've quickly hacked up. It hosts files, ASP files, ASP.NET applications (using the dotnet 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 ISAPI support (actually, no hooks at all). But remember, it's just a quick hack. =)
-
UPDATE!!! This has now been added in the Beta download. -- No querystring support yet. It can handle POST no problems. In the next few days I'll have it fixed so querystring is supported (along with querystring + 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 recommend this 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
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.
|