Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Tuesday, May 11, 2010

What's a MIME type

The Content-Type response header's value in the HTTP Response is known as MIME type.
The MIME type tells the browser what kind of data the browser is about to receive so that the browser will know how to render that. The MIME type is any of the types sent in the HTTP Request's "Accept:" Header.

Example:

In the HTTP POST Request, if we have

Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1

Content-Type: text/html
is the possible MIME type sent using the HTTP Response.

No comments: