Google Answers Logo
View Question
 
Q: HTTP ( Answered,   0 Comments )
Question  
Subject: HTTP
Category: Computers
Asked by: rodferna-ga
List Price: $2.00
Posted: 20 Feb 2003 02:42 PST
Expires: 22 Mar 2003 02:42 PST
Question ID: 163826
EXPLAIN WHY HTTP REQUIRES SENDING WEB OBJECTS TO CLIENTS PREFIXED WITH MIME HEADERS
Answer  
Subject: Re: HTTP
Answered By: j_philipp-ga on 20 Feb 2003 04:20 PST
 
Hello Rodferna,

MIME [1] Headers in HTTP are sent by web servers so the client
application can decide what to do with each file -- that is, with what
kind of application to open the file. (It's similar to a file
extension on an Operating System, only that there are so many
Operating Systems and file extensions. This is why online, from the
perspective of the client application, file extensions should be
considered "meaningless" [2].)

A practical example: if you click on a link to a JPEG image
(content-type: "image/jpeg"), it typically opens within the browser
itself. But if you click on a PDF document (content-type:
"application/pdf"), it might open in Acrobat Reader; or be saved to
disk in case the application is not installed. This is all because the
server declares the content-type of the files to help the client
system to make its best choice.

For a list of MIME types, see:

MIME and the Web -- The MIME Content-Type
http://www.utoronto.ca/ian/books/html4ed/appb/mimetype.html


Hope it helps!


Footnotes:

[1] MIME (Multi-Purpose Internet Mail Extensions)
http://searchwebservices.techtarget.com/sDefinition/0,,sid26_gci212576,00.html

[2] The Content-type Saga (by A. J. Flavell)
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy