2

is it possible to set a specific Value for the cookie, before fetching a page using the Buzz php light weight client? https://github.com/kriswallsmith/Buzz

i want to set splash = 0 for a specific host, to avoid a pop-up they have.

Confidence
  • 2,283
  • 3
  • 33
  • 57

1 Answers1

3

Try this one:

$request = new \Buzz\Message\Request('GET', '/', 'domain.com');
$request->addHeader('Cookie: splash=0');
BenMorel
  • 34,448
  • 50
  • 182
  • 322