captureSessionAction

Description

Capture session data from responses. Captures Set-Cookie headers and optionally other headers like Authorization. Stored data can be replayed using ApplySessionAction.

Evaluation scope

Evaluation scope defines the timing where this filter will be applied.

responseHeaderReceivedFromRemote This scope occurs the moment fluxzy has done parsing the response header.

YAML configuration name

captureSessionAction

Settings

This action has no specific characteristic

Example of usage

The following examples apply this action to any exchanges

Capture cookies from responses.

rules:
- filter:
    typeKind: AnyFilter
  actions:
  - typeKind: CaptureSessionAction
    captureCookies: true
    captureHeaders: []

Capture cookies and Authorization header.

rules:
- filter:
    typeKind: AnyFilter
  actions:
  - typeKind: CaptureSessionAction
    captureCookies: true
    captureHeaders:
    - Authorization

Capture cookies and multiple custom headers.

rules:
- filter:
    typeKind: AnyFilter
  actions:
  - typeKind: CaptureSessionAction
    captureCookies: true
    captureHeaders:
    - Authorization
    - X-CSRF-Token
    - X-Auth-Token

.NET reference

View definition of CaptureSessionAction for .NET integration.

See also

This action has no related action


Go back to list