urlParams
Dynamically modify the query parameters of the request URL, supporting multiple parameter injection methods.
Rule Syntax
txt
pattern urlParams://value [filters...]
Parameter | Description | Detailed Documentation |
---|---|---|
pattern | Expression to match request URLs | Match Pattern Documentation |
value | Operation data object, supported from the following channels: • Directory/file path • Remote URL • Inline/embedded/Values content | Operation Instruction Documentation |
filters | Optional 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
Related Protocols
- More flexible way to modify request parameters: pathReplace
- Deleting request parameters: delete://urlParams.xxx