2_URL_HTTP
2_URL_HTTP
● scheme : this portion of the URL designates the underlying protocol to be used
● host—this is either the name of the IP address for the web server being accessed
● port#—this is an optional portion of the URL designating the port number that the
target web server listens to
● path—logically this is the file system path from the ‘root’ directory of the server to the
desired document.
● url-params—includes optional ‘URL parameters’. Now a days it is used more
frequently, for session identifiers in web servers supporting the Java Servlet API
● query-string—this optional portion of the URL contains other dynamic parameters
associated with the request. Usually, these parameters are produced as the result of
user-entered variables in HTML forms. Equal signs (=) separate the parameters from
their values, and ampersands (&) mark the boundaries between parameter value
pairs.
● anchor—this optional portion of the URL is a reference to a positional marker within
the requested document, like a bookmark. 6
10
11
12
13
14
• OK
• Display response
• Close connection
• OK
15
18
19
20
21
22
HTTP/1.0 200 OK
Date: Sun, 21 Apr 1996 02:20:42 GMT
Server: Microsoft-Internet-Information-Server/5.0
Connection: keep-alive
Content-Type: text/html
Last-Modified: Thu, 18 Apr 1996 17:39:05 GMT
Content-Length: 2543
24
25
26
28
29
30
31
32
33
34
35
36
37
38
41
42
blank line
body
43
44
Body Body
45
47