TechAE Blogs - Explore now for new leading-edge technologies

TechAE Blogs - a global platform designed to promote the latest technologies like artificial intelligence, big data analytics, and blockchain.

Full width home advertisement

Post Page Advertisement [Top]

What Are The Possible Values For HTTP "Content-Type" Header?


Usually, when you are working in Node JS, you have to set a content header that indicates the original media type of the resource. In requests, (such as POST or PUT), the client tells the server what type of data is actually sent. I have listed down all the possible media-type options.

Type application

  • application/java-archive
  • application/EDI-X12
  • application/EDIFACT
  • application/javascript   
  • application/octet-stream   
  • application/ogg   
  • application/pdf  
  • application/xhtml+xml   
  • application/x-shockwave-flash    
  • application/json
  • application/ld+json
  • application/xml
  • application/zip
  • application/x-www-form-urlencoded

Type audio

  • audio/mpeg   
  • audio/x-ms-wma   
  • audio/vnd.rn-realaudio   
  • audio/x-wav

Type image

  • image/gif   
  • image/jpeg   
  • image/png   
  • image/tiff    
  • image/vnd.microsoft.icon    
  • image/x-icon   
  • image/vnd.djvu   
  • image/svg+xml

Type multipart

  • multipart/mixed    
  • multipart/alternative   
  • multipart/related (using by MHTML (HTML mail).)  
  • multipart/form-data

Type text

  • text/css    
  • text/csv    
  • text/html    
  • text/javascript (obsolete)    
  • text/plain    
  • text/xml

Type video

  • video/mpeg    
  • video/mp4    
  • video/quicktime    
  • video/x-ms-wmv    
  • video/x-msvideo    
  • video/x-flv   
  • video/webm

Type vnd

  • application/vnd.android.package-archive
  • application/vnd.oasis.opendocument.text    
  • application/vnd.oasis.opendocument.spreadsheet  
  • application/vnd.oasis.opendocument.presentation   
  • application/vnd.oasis.opendocument.graphics   
  • application/vnd.ms-excel    
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet   
  • application/vnd.ms-powerpoint    
  • application/vnd.openxmlformats-officedocument.presentationml.presentation    
  • application/msword   
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document   
  • application/vnd.mozilla.xul+xml

I hope that you will find this list useful while working. Good Luck!

See you next time,
@TechAE

No comments:

Post a Comment

Bottom Ad [Post Page]