Skip to content

urlParams

Dynamically modify the query parameters of the request URL, supporting multiple parameter injection methods.

Rule Syntax

txt
pattern urlParams://value [filters...]
ParameterDescriptionDetailed Documentation
patternExpression to match request URLsMatch Pattern Documentation
valueOperation data object, supported from the following channels:
• Directory/file path
• Remote URL
• Inline/embedded/Values content
Operation Instruction Documentation
filtersOptional filters, supported for matching:
• Request URL/method/header/content
• Response status code/header
Filter Documentation

Configuration Example

txt
www.example.com/path urlParams://test=123

Accessing https://www.example.com/path/to The server receives URL: https://www.example.com/path/to?test=123

txt
``` test.json
test1: 1
test2:
test3: 3
```
www.example.com/path2 urlParams://{test.json}

Accessing https://www.example.com/path2/to URL received by the server: https://www.example.com/path2?test1=1&test2=&test3=3

Local/Remote Resources

txt
www.example.com/path1 urlParams:///User/xxx/test.json
www.example.com/path2 urlParams://https://www.xxx.com/xxx/params.json
# Editing a temporary file
www.example.com/path3 urlParams://temp/blank.json
  1. More flexible way to modify request parameters: pathReplace
  2. Deleting request parameters: delete://urlParams.xxx