Skip to content

Instantly share code, notes, and snippets.

@aaronzirbes
Last active December 15, 2015 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronzirbes/5201801 to your computer and use it in GitHub Desktop.
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
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