




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of the http protocol, its role in the web's client-server model, and the concept of proxy servers. It also introduces the cosc 6377 term project and its tutorial for fall 2000. Students will learn about http messages, their format, and the differences between non-persistent and persistent connections.
Typology: Study Guides, Projects, Research
1 / 8
This page cannot be seen from the preview
Don't miss anything!





PC running Explorer
Server running NCSA Web server
Mac running Navigator
http request
http request
http response
http response
COSC 6377, Fall 2000 3
has three parts: scheme, host name (w/port), and path name:
http://www.someSchool.edu:port/someDept/pic.gif
http://www.someSchool.edu/someDepartment/index.html
1a. http client initiates TCP connection to http server (process) at www.someSchool.edu. Port 80 is default for http server.
1b. http server at host www.someSchool.edu waiting for TCP connection at port 80. “accepts” connection, notifying client
(contains text, references to 10 jpeg images)
COSC 6377, Fall 2000 7
http message format: request
GET http://www.uh.edu/index.html HTTP/1. User-agent: Mozilla/4. Accept: text/html, image/gif,image/jpeg Accept-language:fr
(extra carriage return, line feed)
request line (GET, POST, HEAD commands)
header lines
Carriage return, line feed indicates end of message
http request message: general format
COSC 6377, Fall 2000 9
Date: Thu, 06 Aug 1998 12:00:15 GMT Server: Apache/1.3.0 (Unix) Last-Modified: Mon, 22 Jun 1998 …... Content-Length: 6821 Content-Type: text/html
data data data data data ...
status line (protocol status code status phrase)
header lines
data, e.g., requested
301 Moved Permanently 400 Bad Request 403 Forbidden 404 Not Found
client
Proxy server
client
http request http response
http request http response
http request http response http request http response
origin server
origin server
COSC 6377, Fall 2000 13
For above client and sever programs, client sends whatever input from console to server , and server sends whatever input from console to client. You can use client to mimic browser and sever to mimic web server, and your proxy runs in-between them.