How to add document using cookie in Guzzle HTTP client-php

Hi,

It looks like the cookie isn’t being set properly in the PHP code. Looking at the GuzzleHttp docs, the ‘cookie’ field should actually be ‘cookies’. Please let us know if this doesn’t work for you.

http://docs.guzzlephp.org/en/stable/quickstart.html#cookies

Thanks,
Ben

2 Likes