Introducing Query Param Rule

Requestly
Requestly
Published in
2 min readDec 30, 2017

Modification of query parameters is one of the most popular feature requests we have received after script execution feature. We are very excited to announce the release of QueryParam as a new rule type. If you are not able to see QueryParam rule type, please update your extension by following this guide. QueryParam rule can be used to perform the following modifications on a given url:

  1. RemoveAll parameters.
  2. Add parameter.
  3. Remove a specific parameter.

Screenshots

Example 1 — Add Parameter “c” when url contains “foo”

Add param “c” with value “3” when url contains “foo”

Example 2 — Remove All parameters and then add parameters “a” and “b” when url contains “example”

FAQ

Q1. If I add a parameter by QueryParam rule and the same parameter already exists in the given url, will Requestly overwrite the parameter value ?
Ans: Yes, Requestly will overwrite the value present in the url to the value given in the rule. For example:

Rule Definition:
Url Contains example.com
Add Param “a” Value “200”

When Requestly gets above query param rule definition and the request url is http://www.example.com?a=100, then it will change the param value to 200 as per the rule and the new url will be http://www.example.com?a=200

Q2. What is the difference between “Remove” and “RemoveAll” ?
Ans: RemoveAll will remove all the parameters while Remove will remove only provided parameter.

Feel free to ask any question as a comment or drop us a note on requestly.extension@gmail.com.

For those who are feeling generous, feel free to buy me a coffee. https://www.paypal.me/sachinjain024.

--

--

Requestly
Requestly

Setup redirects, modify headers, switch hosts, insert user scripts and much more. Install it on Chrome & Firefox and join our family of more than 100,000 devs!