【问题标题】:HTTP 1.0 header content-type for unknow file type未知文件类型的 HTTP 1.0 标头内容类型
【发布时间】:2014-04-30 12:23:17
【问题描述】:

我正在做一个任务,我必须制作一个简单的 HTTP 1.0 服务器。

我知道 htm 文件的内容类型为 text/html,而 jpg 文件的内容类型为 image/jpeg

但是如果文件类型未知,内容类型是什么?

【问题讨论】:

标签: http http-headers


【解决方案1】:

您只是不发送 Content-Type 标头字段。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-17
    • 1970-01-01
    • 2016-05-09
    • 2011-09-30
    • 2013-10-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多