Capturing cookies

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.
  1. 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

  2. Expand HttpClient, right-click Headers and click Actions > Add.
    The Add window opens.
    Image
  3. Right-click HttpClient and click Actions > Send.
    The driver extracts the response cookies.
    Image
  4. 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.