Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   My Own Web Server (http://www.programmingforums.org/showthread.php?t=1173)

nkanthikiran Nov 17th, 2004 1:32 AM

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.

tempest Nov 17th, 2004 8:44 AM

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.

kurifu Nov 17th, 2004 5:42 PM

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.

mackenga Apr 1st, 2005 10:00 AM

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.

Infinite Recursion Apr 1st, 2005 10:29 AM

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, ...

Cerulean Apr 7th, 2005 4:20 PM

Well I don't know, I wouldn't deem a simple webserver as a hard thing. Python source:
:

import SimpleHTTPServer
SimpleHTTPServer.test()

That will serve files using the current working directory as the webserver root. If you wanted to get a little more involved you just create a subclass of the HTTP handler class, re-implement do_GET, do_POST, etc, and use that as the handler.
You could modify apache for whatever if you had countless weeks to waste on doing so.

mackenga May 1st, 2005 6:09 PM

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