reqAppend
Inserts the specified content after the existing request body (only valid for requests with a body, such as POST and PUT).
⚠️ Note: GET, HEAD, and other requests without a body are not affected.
Rule Syntax
txt
pattern reqAppend://value [filters...]| Parameters | Description | Detailed Documentation |
|---|---|---|
| pattern | An expression to match against the request URL | Match Pattern Documentation |
| value | Text or binary content. The following types are supported: • Directory/File Path • Remote URL • Inline/Embedded/Values Content | Operation Instruction Documentation |
| filters | Optional filters. Supports matching: • Request URL/Method/Header/Content • Response Status Code/Header | Filters Documentation |
Configuration Example
Inline Method
txt
www.example.com/path reqAppend://(Hello) reqBody://(-test-) method://postRequesting https://www.example.com/path/to will result in the request body becoming -test-Hello.
Inline/Values Method
txt
``` body.txt
Hello world.
```
www.example.com/path reqAppend://{body.txt} reqBody://(-test-) method://postRequesting https://www.example.com/path/to will result in the request body becoming -test-Hello world..
Local/Remote Resources
txt
www.example.com/path1 reqAppend:///User/xxx/test.txt
www.example.com/path2 reqAppend://https://www.xxx.com/xxx/params.txt
# Editing a Temporary File
www.example.com/path3 reqAppend://temp/blank.txtAssociated Protocols
- Append content to the request body: reqPrepend
- Inject content before the request body: reqBody
- Append content to the response body: resPrepend