码迷,mamicode.com
首页 >  
搜索关键字:nginx下载服务器 下载服务配置 content-disposition    ( 188个结果
php简单导出excel表格
<?php header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename=demo.xls'); header('Pragma: no-cache'); head ...
分类:Web程序   时间:2016-07-14 19:04:06    阅读次数:212
primefaces p:dataExporter filename 支持中文 utf8
p:fileDownload and p:dataExporter : for p:fileDownload, the Content-Disposition header should be set like this: externalContext.setResponseHeader("Con ...
分类:其他好文   时间:2016-07-09 12:13:39    阅读次数:395
jsp表格数据导出到Execl
1.关于“下载” 需要设置页面header的一个属性为:Content-Disposition: attachment; filename=下载的文件.txt 如: 2.关于Execl 使用jxl的 jxl地址:http://www.andykhan.com/jexcelapi/download.h ...
分类:Web程序   时间:2016-07-04 17:10:27    阅读次数:362
response.setContentType()的String参数及对应类型
response.addHeader("Content-Disposition", "attachment;filename="+ filename); response.setContentType("application/vnd.ms-excel;charset=gb2312"); <opti ...
分类:其他好文   时间:2016-06-13 17:06:18    阅读次数:152
python邮件之附件
接上文,python发附件 注意: mime.add_header('Content-Disposition', 'attachment', filename='2013.jpg') mime.add_header('Content-ID','<0>') mime.add_header('X-Att ...
分类:编程语言   时间:2016-06-05 06:29:10    阅读次数:263
Content-disposition
今天查看Struts2的文件上传部分 发现有个例子开头打印的信息中有Content-Disposition,一时好奇,所以了解了一下。顺便学习一下文件上传所需要的注意事项。 Content-disposition 是 MIME 协议的扩展,MIME 协议指示 MIME 用户代理如何显示附加的文件。当 ...
分类:其他好文   时间:2016-05-27 20:14:47    阅读次数:200
php 输出excel
直接使用header输出<?phpheader("Content-type:application/vnd.ms-excel;charset=UTF-8");header("Content-Disposition:filename=test.xls");$cars=array("test1","test2","中文测试");foreach($carsas$key=>$v){//直接输出英文没有问题中文会出问题所以要转一下编码 ec..
分类:Web程序   时间:2016-05-25 18:59:31    阅读次数:273
PHPExcel_CI操作实例
header(‘Content-Type:application/vnd.ms-excel‘); header(‘Content-Disposition:p_w_upload;filename="123.csv"‘); header(‘Cache-Control:max-age=0‘); $this->load->library(‘PHPExcel‘); //设置文件属性 $this->phpexcel->getProperties()->setC..
分类:Web程序   时间:2016-05-12 00:07:47    阅读次数:416
postman中 form-data、x-www-form-urlencoded、raw、binary的区别
1、form-data: 就是http请求中的multipart/form-data,它会将表单的数据处理为一条消息,以标签为单元,用分隔符分开。既可以上传键值对,也可以上传文件。当上传的字段是文件时,会有Content-Type来表名文件类型;content-disposition,用来说明字段的 ...
分类:Web程序   时间:2016-05-11 12:51:54    阅读次数:408
在iis中设置文件下载而不是在浏览器上打开
点击网页链接的*.txt,*.jpg,*.xml等文件时会在浏览器上直接显示,并没有像*.doc那样弹出下载提示框。 解决方法: 在部署的网站上,选择存放文件的目录,选择 HTTP响应标头 ,添加一个HTTP响应头,名称为:Content-Disposition,值为:attachment 即可。 ...
分类:其他好文   时间:2016-05-09 18:24:06    阅读次数:264
188条   上一页 1 ... 8 9 10 11 12 ... 19 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!