I've seen application/csv
used and also text/csv
.
Is there a difference? Does it matter which as long as the request matches something that's available? Are they interchangeable?
content-typecsvhttp-headersmime-types
I've seen application/csv
used and also text/csv
.
Is there a difference? Does it matter which as long as the request matches something that's available? Are they interchangeable?
Best Answer
RFC 7111
There is an RFC which covers it and says to use
text/csv
.This RFC updates RFC 4180.
Excel
Recently I discovered an explicit mimetype for Excel application/vnd.ms-excel. It was registered with IANA in '96. Note the concerns raised about being at the mercy of the sender and having your machine violated.
I wasn't aware that vendor extensions were allowed. Check out this answer to find out more - thanks starbeamrainbowlabs for the reference.