Created
October 18, 2017 19:39
-
-
Save mittsh/a56ee8697c0582183e0955502d3ad7c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function evaluate(context){ | |
| var request = context.getCurrentRequest(); | |
| var bodyParams = request.getUrlEncodedBody(); | |
| for (var property in bodyParams) { | |
| if (bodyParams.hasOwnProperty(property)) { | |
| console.log("" + property + " > " + bodyParams[property]); | |
| } | |
| } | |
| return bodyParams; | |
| }; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To ignore one param and/or get a sorted list, I recommend this snippet instead:
https://gist.github.com/mittsh/b69613c16e2421ae45b08cdeaab5b2ba