Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

text/plain vs. text/txt

by falseazure (Acolyte)
on Oct 06, 2009 at 03:55 UTC ( [id://799379]=perlquestion: print w/replies, xml ) Need Help??

falseazure has asked for the wisdom of the Perl Monks concerning the following question:

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!

Replies are listed 'Best First'.
Re: text/plain vs. text/txt
by ikegami (Patriarch) on Oct 06, 2009 at 04:43 UTC
    It should be text/plain. People probably derived .txt ⇒ text/txt from .html ⇒ text/html. The harm done by this is minimal, but it would be nice to do things right.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://799379]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found