![]() |
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
![]() |
To access the contents, click the chapter and section titles.
Perl CGl Programming: No experience required.
Audio and VideoAudio and Video types will be interpreted by the Web server as video files in MPEG format or basic sound files, which at this writing means Sun Microsystems-type AU files. Many extensions have been written, but Microsoft-type WAV files are not yet part of the MIME standardnor are MIDI files. ImageThe server will expect picture files in either GIF or JPEG (.jpg) format. The Image content-type is important because many new browsers, chiefly Netscape Navigator and Microsoft Internet Explorer, can translate (from MIME-encoding) and display these images directly. MessageThe Message type is an encapsulated message. If it is specified in the header, the data must be in the form of a fully formatted message that complies with RFC 822, the Internet Mail Header protocol.
Of the other two subtypes, Partial allows you to send a message in parts to a server that can only accept messages of a certain size. Junos free e-mail service is an example of this: It will reject messages larger than about 65,000 bytes. The External-Body type allows the message to refer to an external source for data, such as a database on another system. MultipartView the document source of a message you have received with a file attached and youll see how the Multipart type works (see Figure 3.7). Mixed is the subtype used most often. It allows messages to contain more than one type of data. Your message will define a boundary, which is a coded string, then it will mark off the portions of the messagetext here, MIME-encoded data herewith the coded boundary.
TextThis type is the easiest of alljust plain text, so no fancy formatting or translation is needed. Oddly, the html subtype is not considered a standard MIME type, though it is among the most common uses of the type.
Moving On Youve learned about the CGI environment and how to read and manipulate it in this skill. Youve also learned a little more about MIME and its relationship with the World Wide Web. In Skill 4, you will write your first real-world CGI programan application that counts the number of people who have connected with your Web site. Are You Experienced?Now you can
|
![]() |
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. |