Discussion Locked

Working of Web Server

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,
I am looking for a tutorial, zip or pdf that describes the following:
1) How a webserver(say pure httpd) works
2) How it handles concurrent connections
3) " " " timeouts

As a matter of fact I want to create my own webserver using goodspecifications or standars.

Sincerely,
absub1@rediffmail.com
Thank You for your valuable time

5 replies

by peter ritchie

A web server is basically just a multi-threaded socket listener. The "server" software simply listens for socket requests on a given port and spawns a thread, when the request is received, to process TCP/IP http packet information.

Check out http://www.w3.org/Protocols/rfc1945/rfc1945
http://www.w3.org/Protocols/rfc2068/rfc2068 which describes http 1.0 and 1.1 respectively

There's serveral samples on MSDN on dealing with http (both server and client)
for example:
http://msdn.microsoft.com/Downloads/Internet/networking/httpdump/Default.asp?frame=true deals with client http requests

Last time I looked there was an http server sample in the Microsoft WinInet sdk.

This discussion is closed to new replies.