Last active
December 15, 2015 04:29
-
-
Save aaronzirbes/5201801 to your computer and use it in GitHub Desktop.
This will hammer the Grails /console to try to get it to fail when it drops the POST data
This file contains 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
for (var wat = 0; wat < 1000; wat++) { | |
var url = '/console/execute'; | |
var data = { code: "println 'too big to fail'\n" }; | |
$.post(url, data, function(data, textStatus) { | |
console.log(textStatus); | |
if (data.exception) { | |
console.log("Found Error!"); | |
console.log(data.exception); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment