Buzz php HTTP-Client:setting a cookie value

1.3k Views Asked by At

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.

1

There are 1 best solutions below

0
BenMorel On BEST ANSWER

Try this one:

$request = new \Buzz\Message\Request('GET', '/', 'domain.com');
$request->addHeader('Cookie: splash=0');