- Summary
- Specifies whether or not cookies are used in a request or what cookiejar to use or what cookies to send.
- Types
- Default
- None
- Constant
GuzzleHttp\RequestOptions::COOKIES
You must specify the cookies option as a or
false
.
This option only has an effect if your handler has the middleware. This middleware is addedby default when a client is created with no handler, and is added bydefault when creating a handler with GuzzleHttp\default_handler
.
When creating a client, you can set the default cookie option to to use a shared cookie session associated with the client.