Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Unable to set Accept-Language #163

Discussion options

You must be logged in to vote

So after a few hours of sleep i can answer it myself...

$page->setExtraHTTPHeaders(array("accept-language"=>"de-DE"));

My bad was to place a ':' where it should not be and also i had it as normal array, but puphpeteer/puppeteer needs it as key=>value..

So it is now working..

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HASCHKAKERLAKE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant