I am using chrome-php I want to get the header from the response Is there any way I can get it? Here is how I am trying to implement the functionality ...
$browserFactory = new BrowserFactory('chromium-browser');
// starts headless chrome
$browser = $browserFactory->createBrowser([
'noSandbox' => true,
'debugLogger' => 'php:/开发者_JAVA技巧/stdout',
]);
try {
$page = $browser->createPage();
$page->navigate($url)->waitForNavigation();
info([$page->getHtml()]);
finally {
$browser->close();
}
精彩评论