Greetings, Monks.

I guess this is more of a web mime types/general cgi output question but it came up in a Perl cgi web app I am maintaining so I guess I will ask about it here.

In some cases the aforementioned app outputs plain text preceeded by "Content-type:text/plain", which I gather from looking into mime types is the web standard for transmitting plain text. But sometimes the app instead prints "Content-type:text/txt", which an initial google doesn't turn up much documentation or info about except that it looks like it sometimes appears in other Perl code too.

My questions are: does Content-type:text/txt have a distinct meaning or purpose as opposed to text/plain? Is it a standard? I don't see it on the mime types list (http://www.iana.org/assignments/media-types/) Should it be avoided/purged from my code and replaced with text/plain?

Thanks!


In reply to text/plain vs. text/txt by falseazure

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.