![]() |
Hi ,
I am looking for coding my own light weight webserver.....can any on guide me how is it possible way with best soutions(i have to do a project for web based administration in windows (some thing like WEBMIN in LInux) how can this be achieved) Regards, Kanthi. |
With C++/C/C#/Java/Python and language that is compilable. Ive even heard that command line PHP can accomplish it. You'll need to look up network sockets in the language of your choice, get to know them and then look up HTTP headers.
|
You are probably also going to want to look up the HTTP1.0 RFC document, since it contains everything you need to know on HTTP1.0.
HTTP1.1 is today's standard, but if you are looking for lightweight HTTP1.0 is probably all you will really need, since it just removes support for advances features like virtual name hosting and what not. Good luck, it is not going ot be any easy task. |
You might fancy looking into the mini-httpd that comes with Tcl. See www.scriptics.com (I think... actually I'm having paranoid doubts about that URL now; googling for scriptics will get it if I'm wrong) and root around. It's free and open source, and could save you a bit of time.
|
You could always look at Apache's code (it is, afterall, open source)... then base it off of that. You will definitely need knowledge of sockets, network programming, HTTP, ...
|
Well I don't know, I wouldn't deem a simple webserver as a hard thing. Python source:
:
import SimpleHTTPServerYou could modify apache for whatever if you had countless weeks to waste on doing so. |
Every day, I become a little more astonished at how much Python rocks.
|
| All times are GMT -5. The time now is 1:00 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC