You may need to capture cookie values from a response. This allows linking within Wire Sheet logic, perhaps to use as a cookie value on another client request.
Prerequisites: The httpClient palette is open.
- Drag a ResponseCookieCapture component from the palette to the HttpClient or Http Proxy Client Ext.
For example, you may receive these http headers in a response:
Set-Cookie: JSESSIONID=456789; Expires=Wed, 09 Jun 2021 10:18:14 GMT
Set-Cookie: SID=31d4d96e407aad42; Path=/; Secure; HttpOnly
- Expand HttpClient, right-click Headers and click .
- Right-click HttpClient and click .
The driver extracts the response cookies.
- Switch
Capture All
to true
and send again.For example:
JSESSIONID: 456789
SID: 31d4d96e407aad42
The driver creates and updates slots for all received cookies and discards all other cookies attributes beyond the value.