简体   繁体   中英

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 ?

many thanks

These are the response headers, which you can get with response.headers() :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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