Skip to content

Instantly share code, notes, and snippets.

@jsoverson
Created March 26, 2019 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsoverson/d419b945c480ecbfc71d3bc016c9d666 to your computer and use it in GitHub Desktop.
Save jsoverson/d419b945c480ecbfc71d3bc016c9d666 to your computer and use it in GitHub Desktop.
Puppeteer echo request headers
const puppeteer = require('puppeteer');
(async() => {
const browser = await puppeteer.launch({
});
const page = (await browser.pages())[0];
const response = await page.goto('http://scooterlabs.com/echo.json');
console.log(await response.json());
await browser.close();
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment