| < Day Day Up > |
MIME is defined in RFC 1521 and 1522. The specifications include:
Five new message header fields that provide information about the body of the message.
A number of content formats to support multimedia mail.
The five header fields are:
MIME Version 1.0 (conforms to RFC 1521 and 1522).
Content type that describes data contained in the body.
Content transfer encoding that indicates the type of transformation that has been used to represent the body of the message.
Content ID to uniquely identify MIME content types.
Content description: plain text description of object, such as audio, text, or video clip.
Some of the MIME content types are listed here.
|
Type |
Subtype |
Description |
|---|---|---|
|
Text |
Plain |
|
|
Multipart |
Mixed |
To be presented to the
|
|
Parallel |
No order is required. |
|
|
Alternative |
Alternative version, best to be displayed. |
|
|
Digest |
Similar to mixed, but RFC 822. |
|
|
Message |
RFC822 |
|
|
Partial |
Fragment |
Large
|
|
External body |
Pointer to object |
|
|
Image |
JPEG |
|
|
GIF |
||
|
Video |
MPEG |
|
|
Audio |
Basic |
8-bit at 8kHz |
|
Application |
PostScript |
|
|
Octet stream |
Binary data with 8-bit types. |
An example MIME header looks like this:
From: kvkk.prasad@ieee.org To: kvravi@ece.nus.sg Sub: demo MIME Version 1.0 Content type: multipart/mixed Content type: video/MPEG
|
|
MIME is an extension to SMTP to provide multimedia message content to e-mails. In addition to plain text, images, executable files, audio, and video clips can be attached to the e-mail. MIME is defined in RFCs 1521 and 1522.
|
|
Hence, MIME is an extension to the SMTP to provide multimedia support in the message of the mail using the various MIME types.
| < Day Day Up > |
| < Day Day Up > |
To access the World Wide Web service, HTTP protocol is used, the latest version being HTTP 1.1. HTTP uses URL (Uniform Resource Locator), which represents the location and access method for a resource available on the Internet. For example:
http://www.iseeyes.com
ftp://rtfm.mit.edu/pub/Index.README
|
|
The Uniform Resource Locator (URL) has six fields: protocol, domain name, port address, directory
|
|
The format of a URL is
http://www.elearn.cdacindia.com:80:/hypertext/www/Addressing/Addressing.html#spot
1 2 3 4 5 6
Protocol (such as HTTP, FTP)
Domain name
Port address
Directory path
Object name
To reach a specific spot (or link)
Some of the most commonly used protocols along with port addresses are
|
FTP |
21 (port address) |
|
HTTP |
80 |
|
Telnet |
23 |
Figure 23.2 shows the procedure for accessing the resource corresponding to a URL. The client invokes the browser (such as Internet Explorer or Netscape Communicator) and specifies the URL. The URL is passed to a Domain Name System (DNS) server (Step 1), which gives the IP address of the server (Step 2) that has the resource corresponding to that URL. The server that has the resource is known as the origin server. Using that IP address, the HTTP request is sent to the Web server (Step 3) and the Web server gives the response in the form of an HTML document to the client via the ISP server (Step 4). Sometimes Web servers do not allow access to every
Figure 23.2:
Web access.
|
|
When a user wants to access a resource by giving a URL, the IP address of the origin server is obtained using a Domain Name System. Then a TCP connection is established between the client and the origin server. The origin server sends the HTML document corresponding to that URL to the client.
|
|
HTTP is a transaction-oriented client/server protocol. The client is the Web browser, and the server is the web server. The mechanism for HTTP protocol is shown in Figure 23.3. The origin server is the server on which the resource is located. There are three possibilities for interaction between the client and the origin server:
Direct connection
Proxy
Relay
Figure 23.3:
Hypertext transfer protocol (HTTP).
In direct connection, a TCP connection is established between the client (user agent) and the origin server. The user agent sends an HTTP request, and the origin server sends the response.
|
|
A proxy is used when the Internet server does not permit direct access to the users. The proxy acts as a client to the server and as a server to the client.
|
|
A proxy acts as a server in interacting with
A tunnel
There are two types of messages:
|
Request messages: |
GET, POST, DELETE |
|
Response messages: |
OK, Accepted, Use Proxy |
Each message contains a header and a body.
HTTP defines status codes to
|
OK |
Request successful. |
|
No content |
No information to send back. |
|
Moved permanently |
Resource URL has changed permanently. |
|
Moved temporarily |
Resource URL has changed temporarily. |
|
Use Proxy |
Resource must be accessed through proxy. |
|
Unauthorized |
Access control is
|
When a user wants to access a Web site, the URL given in the address field of the browser is sent to the ISP server, which gets the IP address corresponding to the URL. Then a TCP connection is established and a
GET
command is sent. The origin server sends back the resource (the HTML file). The HTML code containing the tags will be interpreted by the browser and displayed to the user. In case any error is
|
|
HTTP is a simple transaction-oriented client/server protocol. The client sends a GET request along with a URL, and the server responds with a POST response containing the HTML document corresponding to that URL. In case there is a problem such as nonavailability of the content, nonavailability of the server, and so on, an error message is sent.
|
|
The World Wide Web has become the most attractive service on the Internet because of HTTP. The information corresponding to a URL is obtained from the origin server in the form of Hypertext Markup Language (HTML), which is a simple text file with tags (called markup). These tags specify how the content has to be formatted and displayed (bold
| < Day Day Up > |