Session Variables to expand into Requests

WebSurge sessions support fixed values that you can create as variables and then expand into content using the following format.

Creating Variables

To create variables you can go to the session configuration and enter them into the Session Variables edit box, one line per variable. Variables are in the following format:

@varname=value
@token=x3dfeaea29jsg

Common values here can be fixed user tokens, base urls or any other constant values that you might re-use across multiple requests, or need to customize depending on the target that the requests are running against.

Using Variables in Requests

To use the variables in your requests you can embed them into the Url, Headers or Body of any request in the session.

For example in the body you might have:

{
    name: "{{varname}}"
}

In a header you might replace a token.

Authorization: Bearer {{token}}

© West Wind Technologies, 2014-2023 • Updated: 09/01/23
Comment or report problem with topic