Source Condition


The Modify Request Body allows to modify the API request body with custom payload without touching the source code.


Source Condition: The Source condition is where you define the rules for determining which requests will match the specified conditions. You can use Contains, Wildcard or Equals to match the request URL.



It is possible to add a Source Condition multiple times. The rule will work if one of them matches the source URL. In each Source Condition, there is an option to enable or disable it.


Match Operators


Contain Operator


Contain operator searches provided word in the whole URL


Examples ⬇️


Word - user
URL - http://example.com/user
Result - Match ✅


Word - user
URL - http://example.com/?key=user
Result - Match ✅


Word - user
URL - http://user.com/
Result - Match ✅


Word - user
URL - http://example.com/
Result - No Match ❌


Equal Operator


Equal Operator is strict matching action however this operator is ignore the protocol (http or https) and last slash (/) end of the URL


Examples ⬇️

Word - example.com
URL - http://example.com
Result - Match ✅


Word - example.com
URL - http://example.com/
Result - Match ✅


Word - example.com
URL - https://example.com/
Result - Match ✅


Word - example.com
URL - http://example.com/
Result - Match ✅


Word - example.com
URL - http://www.example.com/
Result - No Match ❌


Word - example.com
URL - http://example.com/user
Result - No Match ❌


Wilcard Operator


Wilcard operator uses the asterisk (*) to match the URL


Word - *example*
URL - http://example.com
Result - Match ✅


Word - https://*example.com
URL - https://www.example.com
Result - Match ✅


For Redirect Request there is more powerful options. Each match with asterisk can be replaced in some parts of the destination URL $[number]


Examples ⬇️


Word - https://example.com/*/*/*
URL - https://example.com/article/edit/12
Matches - $1 = article, $2 = edit, $3 = 12
Destination - https://google.com/$1/$2/$3
Redirected URL - https://google.com/article/edit/12
Result - Match ✅


Word -*://*.example.com/*
URL - https://www.example.com/?age=12&gender=male
Matches - $1 = http, $2 = www, $3 = ?age=12&gender=male
Destination - https://google.com/$1/$2/$3
Redirected URL - https://google.com/https/www/?id=12&gender=male
Result - Match ✅


Word - https://example.com///*
URL - https://www.example.com/article/edit/12
Result - No Match ❌