Search code examples
phphttpcookiesbuzz

Buzz php HTTP-Client:setting a cookie value


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.


Solution

  • Try this one:

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