CS485G Spring 2015 66
(e) The client uses the host:port part to determine the address
and of the server and the port to connect to. It uses the service
part to determine what protocol to use.
(f) The server uses the file/path part to determine what file to
send, or what program to start. It sends the output of the pro-
gram to the client.
(g) One can use telnet to manually engage in a protocol, if it is con-
ducted in ASCII (most are).
unix> telnet www.cs.uky.edu 80
Trying 128.163.146.21...
Connected to bud.cs.uky.edu.
Escape character is ’ˆ]’.
GET / raphael/ HTTP/1.1
GET / raphael/finkel2.1.jpg host: www.cs.edu
HTTP/1.1 200 OK
Date: Fri, 01 May 2015 01:55:58 GMT
Server: Apache/2.2.22 (Ubuntu)
...
<html>
...
Connection closed by foreign host.
(h) Various methods to get content (incomplete list)
i. GET: the parameters for dynamic content are part of the
URL.
ii. POST: The parameters for dynamic content are in the re-
quest body.
iii. OPTIONS: Get server of file attributes
(i) The text describes the code for a tiny web server, which only
uses 226 lines of C code.
(j) A proxy is an intermediary process between a client and server,
acting to each as a partner. The proxy can do caching, logging,
anonymization, filtering.
4. SMTP protocol is also ASCII, used for sending mail.
Comentarios a estos manuales