简体   繁体   English

可以使用 nodejs 和 puppeteer 获取 HTTP 响应标头吗?

[英]Possible to get HTTP response headers with nodejs and puppeteer?

在此处输入图片说明

Hi there,你好呀,

is there any possible way to get the server information like the above by using nodejs and puppeteer ?是否有任何可能的方式使用和的NodeJS木偶戏让像上述服务器的信息?

many thanks非常感谢

These are the response headers, which you can get with response.headers() :这些是响应头,您可以通过response.headers() 获得

const response = await page.goto(url);
const headers = response.headers();
console.log(headers);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM