Skip to content

Using Environment Variables in Replay

When testing targets using Replay, you can easily switch context by leveraging your custom environments and associated variables.

Creating Environment Variables

To create a new environment and define its variables, navigate to the Environment interface in Caido.

Environment interface.

To define a new variable, click on the + Add button. A new variable row will be added to the table.

Next, click on the 🖉 button to edit it.

Editing an environment variable.

Once you have made the desired edits, click on the 🖫 button to save the variable.

Saving an environment variable.

Then, depending on if the environment is new or existing, click on either the + Create or 🖫 Update button in the bottom left corner of the pane.

Create button for environment variable.Update button for environment.

Inserting an Environment Variable

With a defined environment variable, navigate to the Replay interface. Within a request editing pane, click, hold, and drag over the value you want to replace and then click the + button to add it as a placeholder.

Adding a placeholder in a Replay request.

Next, click on the associated 🖉 button of the placeholder. Doing so will present the Placeholder Settings window.

With Environment Variable as the Type, click on the Select an environment variable drop-down menu, select a environment variable from the list, and click Add to save the configuration.

Adding an environment variable to a Replay request.

Applied environment variables will be listed in the window table. If multiple environment variables are listed, they will overwrite in top to bottom order.

To change the order, left-click, drag, and hold a row either above or below other rows in the table and release.

Close the settings window and send the request. To verify the addition was successful, you can view the request by navigating to the Search interface.

Viewing the Replay request environment variable addition.