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.

To define a new variable, click on the + Add
button. A new variable row will be added to the table.
Next, click on the pencil icon to edit it.
Once you have made the desired edits, click the floppy disk icon to save the 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.
Inserting an Environment Variable
With a defined environment variable, navigate to the Replay interface. Within a request editing pane, click, hold, and drag the left mouse button over the value you want to be replaced and then click the +
button to add it as a placeholder.

Next, click the edit button located to the right of the placeholder. Doing so will present the Placeholder Settings
window. Select Environment Variable
from the top dropdown menu. Then, select the desired environment variable by name from the other dropdown menu. Click on the Add
button to save the configuration. The addition will be reflected in the list of Active preprocessors
.

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.
