• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. HTTP > Media Types and Subtypes

17.5. Media Types and Subtypes

Media types are used to communicate the format of the content in HTTP transactions. Clients use media types in their Accept headers to indicate what formats they prefer to receive data in. Servers use media types in their Content-Type headers to tell the client what format the accompanying entity is in—i.e., whether the enclosed text is HTML that needs to be formatted, GIF or JPEG to be rendered, or PDF that requires opening an external viewer or using a plug-in.

Internet media types used by HTTP closely resemble MIME types. MIME (Multipurpose Internet Mail Extension) was designed as a method for sending attachments in email over the Internet. Like MIME, media types follow the format type/subtype. Asterisks (*) represent a wildcard. For example, the following client header means that documents of all formats are accepted:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint