0% found this document useful (0 votes)
20 views9 pages

Web Server

1. The group has 6 members working on a web server project: Muhammad Aamir Irshad, Aurangzaib, Ghulam Shabbir, Saqib, Zahid Satar, and Mehrban. 2. A web server is a computer program that understands the HTTP protocol and generates responses to client requests. When a client connects to the server and sends a request, the server reads the request and generates a response. 3. The process behind a web page involves a client like a browser sending a request to the server. The server then parses the request to obtain the needed information, develops a response by verifying file permissions and building a response header, and sends the header

Uploaded by

Malik Amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views9 pages

Web Server

1. The group has 6 members working on a web server project: Muhammad Aamir Irshad, Aurangzaib, Ghulam Shabbir, Saqib, Zahid Satar, and Mehrban. 2. A web server is a computer program that understands the HTTP protocol and generates responses to client requests. When a client connects to the server and sends a request, the server reads the request and generates a response. 3. The process behind a web page involves a client like a browser sending a request to the server. The server then parses the request to obtain the needed information, develops a response by verifying file permissions and building a response header, and sends the header

Uploaded by

Malik Amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

Web server

Group memeber
1 - Myhammad Aamir Irshad
2 - Aurangzaib
3 - Ghulam Shabbir
4 - Saqib
5 - Zahid Satar
6 - Mehrban

2686
2628
2648
2654
2672
2682

Muhammad Aamir Irshad

2686

Explanation of web server


Program that understands the HTTP protocol and
generates appropriate responses
Clients connect to the server
Clients send a request to server
Server reads request, generates response

In simple word what is web server?

The Process Behind a Web Page


Request
The Request
browser sends a request to the
server. This request header has a defined
format that is set by the W3C, the
organization
that establishes the standards for
communicating through HTTP (HyperText
Transfer
Protocol) as well as other internet standards.
This header looks similar to the following:

Exemple of request
GET /index.html HTTP/1.1
Host: www.nd.edu/~mkimmet
Date: 09 Mar 2002 10:22:09 GMT
User-Agent: Mozilla/4.0
Accept: text/html, image/jpeg
/*blank line*/

Parsing the Request


The next step is done on the servers end. The
server takes the request header received
and parses it to get the necessary data it needs to
fill the request. From the first line it
determines what type of request was made (GET,
HEAD, POST), the file that was
requested, in this case \index.html, and the HTTP
version that will be accepted. Below
this information are the various other optional
attributes like date, host, user-agent,
language-accepted, and content types accepted.

Developing a Response
After it has this information parsed, it uses it
to create a response header. First it will
verify that the file exists and the user has
permissions to view it. Next it will build the
response header, and then send the header
and the file (if applicable) to the client IP. A
example header looks like this:

Exemple of Responce
HTTP/1.1 200 OK
Server: NCSA/2
Location:
http://www.nd.edu/~mkimmet/index.html
Content-type: text/html
Content-length: 67
/* blank line */

You might also like