Skip to content

Match & Replace

TIP

If you're having an issue with your Match & Replace rule not taking affect, make sure you're looking at the un-prettified version of the request/response body by pressing the {} button within any request/response pane to ensure your spacing is correct.

Request Sections

SectionTarget
Request PathThe path of a request.
Request MethodThe HTTP method of a request.
Request QueryThe query of a request.
Request First LineThe first line of a request.
Request HeaderThe header or headers of a request.
Request BodyThe body data of a request.

Response Sections

SectionTarget
Response First LineThe first line of a response.
Response Status CodeThe HTTP status code of a response.
Response HeaderThe header or headers of a response.
Response BodyThe body data of a response.

Request Query Section Actions

ActionDescription
Update RawMakes modifications to the query as a whole.
Update ParamMatches against a query parameter key name and modifies its value.
Add ParamAppends an additional query parameter.
Remove ParamRemoves a query parameter by key name.

Request Header/Response Header Section Actions

ActionDescription
Update RawMakes modifications to the headers as a whole.
Update ValueMatches against a header's key name and modifies its value.
AddInserts a new header key-value pair.
RemoveRemoves a header by key name.

Matcher

MatcherDescription
FullMatches against the entire section will be replaced. If there are multiple section items, such as when dealing with headers, all instances will be replaced.
RegexMatches against Rust flavor regular expressions.
StringMatches against string values.

NOTE

Caido does not currently support look-around and backreference regular expressions.

TIP

To test your regular expressions, visit regex101.com.

Replacer

ReplacerDescription
TermReplaces the match with a string value.
WorkflowApplies a workflow to the match.