Skip to content

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...]
ParametersDescriptionDetailed Documentation
patternAn expression to match against the request URLMatch Pattern Documentation
valueText or binary content. The following types are supported:
• Directory/File Path
• Remote URL
• Inline/Embedded/Values Content
Operation Instruction Documentation
filtersOptional 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://post

Requesting 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://post

Requesting 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.txt

Associated Protocols

  1. Append content to the request body: reqPrepend
  2. Inject content before the request body: reqBody
  3. Append content to the response body: resPrepend