码迷,mamicode.com
首页 > 编程语言 > 详细

Java File download

时间:2019-08-23 10:38:23      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:osi   methods   cat   define   lin   响应   multipart   chm   方式   

 
注意文件响应处理方式,是响应为网页形式还是附件显示,看如下信息:
 
 
In a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an attachment, that is downloaded and saved locally.

In a multipart/form-data body, the HTTP Content-Disposition general header is a header that can be used on the subpart of a multipart body to give information about the field it applies to. The subpart is delimited by the boundary defined in the Content-Type header. Used on the body itself, Content-Disposition has no effect.

The Content-Disposition header is defined in the larger context of MIME messages for e-mail, but only a subset of the possible parameters apply to HTTP forms and POST requests. Only the value form-data, as well as the optional directive name and filename, can be used in the HTTP context.

 

 

For more information check out here.

  

Java File download

标签:osi   methods   cat   define   lin   响应   multipart   chm   方式   

原文地址:https://www.cnblogs.com/irobotzz/p/11398392.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!