To enable Cookie support, first enable in the Subproject Configuration dialog. It would affect the whole Subproject.
By default, Cookie is disabled.
To receive Cookie from servers, an environment must be selected or created. Cookie storage is not shared among multiple environments.
If Cookie is enabled, the Cookie storing in the storage would be applied to matching requests automatically. To examine what Cookie would be applied, check the Cookie tab in the Request Example level.
To send custom Cookie in additional to stored Cookie, one can insert Cookie in the Cookie tab in the Request Example level:
or in the Environment level:
Variables and functions are supported only in the "value" field.
However, Cookie containing variable and function macros in the "Set-Cookie" response headers are automatically dropped for security reasons.
For example, in the following response, only the cookie "cookie1" would be stored.
HTTP/1.1 204 No Content
Set-Cookie: cookie0=some-${{var}}; Max-Age=3600
Set-Cookie: cookie1=AbcDE; Max-Age=3600
All types of supported HTTP transport, including WebSocket, GraphQL and gRPC, support Cookie. Note that response headers "Set-Cookie" only take effect after the entire request is completed.
Powered by Doctave