docs/en/docs/rules/reqAppend.md
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.
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 |
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.
``` 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..
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
Prepend To Body): reqPrependReplace Body): reqBodyAppend To Body): reqAppend