an old MIME type Application/x-csv
来源:互联网 发布:中国出生人口实时数据 编辑:程序博客网 时间:2024/06/06 12:49
Today, focus on Selenium Test to make sure download function works well. Firefox keep pop up a ask dialog to when it is trying to download CSV file, even I set downloading CSV file do not require ask dialog. The reason is CSV mime type has a lot of version:
The list below:
'text/x-comma-separated-values'
'text/comma-separated-values'
'application/octet-stream'
'application/vnd.ms-excel'
'application/x-csv'
'text/x-csv'
'text/csv'
'application/csv'
'application/excel'
'application/vnd.msexcel'
=================================================
MIME Application/x-csv
Mime application/x-csv is a non-standard mime type that indicates the presence of a comma separated values (CSV) file.
Comma separated values files are most often used to exchange spreadsheet data amongst different spreadsheet applications. For example, while a Microsoft Works database file may not be easily opened by other spreadsheet programs, if the file is saved in the CSV format, other spreadsheet programs will be able to work with the data. Each “value” in a spreadsheet is separated by a comma which allows other programs to place the values in cells in a new spreadsheet. Officially, .csv files should be marked with the IANA mime type of text/csv.
This is the mime type on record with the Internet Assigned Numbers Authority as of October 2005. However, the CSV format has been in existence for far longer with programmers using their own variations such as text/tab-separated-values and mime application/x-csv. If Web servers, browsers, email clients, and other user agents have been programmed to recognize mime application/x-csv, then they will understand that the download or attached file is a comma separated values file and respond accordingly. If the user agent doesn’t recognize mime application/x-csv, it will likely perform additional scans of the file to determine its nature.
Whether mime application/x-csv or text/csv is used, the file is most likely a CSV file.
=================================================
Using Chorme(Network Tab) to check the MIME type.
- an old MIME type Application/x-csv
- Mime type with javascript----text/javascript,application/javascript, and appliation/x-javascript
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- Resource interpreted as Font but transferred with MIME type application/x-font-woff
- Invalid mime type "application/json, application/json": Invalid token chara
- MIME media type application/json was not found
- Warning: unknown mime-type for "xxx" -- using "application/octet-stream"
- Expected mime type application/octet-stream but got text/html.
- MIME TYPE
- Mime-Type
- Mime-Type
- MIME Type
- mime type
- MIME Type
- Mime-type
- Mime-Type
- mime-type
- MIME type
- chuangyuanwenzhang
- 数据结构-图-最短路径问题
- js数组去重的三种常用方法总结
- hdu 5119 Happy Matt Friends 2014ACM/ICPC亚洲区北京站-重现赛
- MyBatis中typealiases的使用
- an old MIME type Application/x-csv
- js笔记
- 消息驱动的Bean和无状态的会话Bean有什么区别?
- Caused by: org.apache.commons.httpclient.ProtocolException: The server trans.jd.com failed to respon
- 学习笔记----OC 中类别 扩展
- xcode中,Architectures;Valid Architectures; Build Active Architecture Only的含义
- java.lang.UnsatisfiedLinkError解决方法汇集
- Best Time to Buy and Sell Stock III
- iPhone6/6Plus下app状态栏内容放大问题处理,