URN for MIME type

Is there an official URN for a MIME type?

Mozilla Firefox and other applications use symbols such as " urn:mimetype:text/plain" or " urn:mimetype:handler:text/plain". There are two problems with this approach:

  • There is no " mimetype" namespace according to the official IANA registry ( http://www.iana.org/assignments/urn-namespaces/ ). Thus, only " urn:x-mimetype" will be a valid namespace (according to RFC 3406, section 4.1).

  • The slash " /" cannot be used in the URN in accordance with section 2.2 of RFC 2141. But it can be encoded to " %2F".

All that is discussed, is there any other way to represent the MIME type " text/plain" as a URN than " urn:x-mimetype:text%2Fplain"?

[UPDATE: Thinking about this, the URI will be fine too. But I can not find the URI for the MIME type.]

thanks

+3
source share
1 answer

FYI, I read availability /as DO NOT USE using RFC 2141, not MUST NOT.

For this approach, I would just use the job URI, for example. < http://www.iana.org/assignments/media-types/application/zip >. The only caveat is that not all of them play. If you can live with it, you should be fine.

+1
source

Source: https://habr.com/ru/post/1708993/


All Articles