```javascript
{
'cache-control': 'no-store, no-cache, must-revalidate',
connection: 'Keep-Alive',
'content-disposition': 'attachment; filename="xxxx.zip"',
'content-length': '21147482',
'content-type': 'application/zip',
date: 'Sun, 02 Feb 2025 04:09:28 GMT',
expires: 'Thu, 19 Nov 1981 08:52:00 GMT',
'keep-alive': 'timeout=5, max=98',
pragma: 'no-cache',
server: 'Apache/2.4.52 (Ubuntu)',
'set-cookie': 'PHPSESSID=94fvcskn745lsq6tb751gnrpov; expires=Sun, 02-Feb-2025 04:39:28 GMT; Max-Age=1800; path=/',
'x-php-sess-user': 'dddddd'
}

```
本来能下载的 前几天网站好像升级了
举报· 428 次点击
登录 注册 站外分享
3 条回复  
zhouyin 楼主 小成 2025-2-2 12:44:21
在 win11 上随 node 启动的 chrome 看图 https://imgur.la/image/imgapp.xF2jF puppeteer 是下面这样启动的 ```javascript const puppeteer = require('puppeteer-extra'); const StealthPlugin = require('puppeteer-extra-plugin-stealth') puppeteer.use(StealthPlugin()) const browser = await puppeteer.launch({ headless: false, args: ['--no-sandbox', '--disable-setuid-sandbox', '-–disable-gpu', '-–disable-dev-shm-usage', '-–no-first-run', '-–no-zygote', '-–single-process'], }); ``` package.json 版本: ```javascript "dependencies": { "chrome-har": "^0.7.1", "chrome-launcher": "^0.10.5", "puppeteer": "^24.1.1", "puppeteer-extra": "^3.3.6", "puppeteer-extra-plugin-stealth": "^2.11.2" } ```
follower 初学 2025-2-2 13:34:22
把手动点击下载的响应头也发出来看下?
zhouyin 楼主 小成 2025-2-2 13:48:46
@follower 已解决 原来是下载目录设置问题
返回顶部