I have to validate the Content-Type
header value before passing it to an HTTP request.
Is there a specific list for all the possible values of Content-Type
?
Otherwise, is there a way to validate the content type before using it in an HTTP request?
Best Answer
You can find every content type here: http://www.iana.org/assignments/media-types/media-types.xhtml
The most common type are:
Type application
Type audio
Type image
Type multipart
Type text
Type video
Type vnd :