php - 使用 PHP 脚本下载时出现网络故障
问题描述
我在 chrome 中收到网络故障消息,但在使用 php 下载脚本在其他浏览器上工作。
我将以下标题设置为下载。
cache-control: must-revalidate, post-check=0, pre-check=0
content-disposition: attachment; filename="export.csv"
content-length: 388436
content-type: application/octet-stream
date: Thu, 19 Jul 2018 13:41:02 GMT
expires: Wed, 19 Jul 2017 13:40:59 GMT
last-modified: Thu, 19 Jul 2018 13:41:02 GMT
pragma: public
server: nginx
set-cookie: admin=p5t1vd4e4u3j9g6gto5h046ki0; path=/admin; domain=xyz.com; secure; HttpOnly
status: 200
x-powered-by: PHP/7.0.29
我在 chrome 版本 67.3396.99 中遇到错误
解决方案
推荐阅读
- javascript - 当特定网页出现 JS 控制台错误时获取通知
- amazon-web-services - 将文件上传到 S3 并将元数据上传到 RDS 的最佳实践?
- reactjs - 如何在 Next js 中使用自定义 Javascript
- javascript - 表格左侧的语言更改按钮
- google-cloud-platform - BigQuery 计划查询通知
- reactjs - Gatsby 内容安全策略
- java - Java 使用缩短的路径创建临时文件夹,并在尝试访问放置在其中的文件时抛出“未找到”异常
- raster - 将数据框导出为直到格式
- matlab - 如何在定向后改变椭球的尺寸
- java - 引导完成后前台服务需要 40 到 50 秒的时间吗?