使用application / csv与text / csv有什么区别? [英] What's the difference between using application/csv vs text/csv?
问题描述
使用 application / csv
vs text / csv
作为HTTP Accept Header之间有什么区别?
What's the difference between using application/csv
vs text/csv
as the HTTP Accept Header?
推荐答案
使用MIME类型,因此软件(例如浏览器)可以知道如何处理数据。
A MIME type is used so software ( like a browser for example ) can know how to handle the data.
如果服务器说此数据类型为text / csv,则客户端可以理解可以在内部呈现该数据,而如果服务器显示此数据是类型application / csv客户端知道它需要启动在操作系统上注册的应用程序才能打开csv文件。
If a server says "This data is of type text/csv" the client can understand that can render that data internally, while if the server says "This data is of type application/csv" the client knows that it needs to launch the application that is registered on the OS to open csv files.
text / csv更通用。
text/csv is more generic.
这篇关于使用application / csv与text / csv有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!