I modified a little the script supplied by @StriplingWarrior to accept a HAR file as parameter. The HAR file can be saved from Chrome's Developer Tools (Ctrl+Shift+J).
First open the page with the form data already posted, then right click the first document on the Network tab and select "Copy entry as HAR". Then paste the content on the script below:
<html><body><script>
function dopost() {
var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", har["request"]["url"]);
var params = har["request"]["postData"]["params"];
for(var e in params) {
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", params[e]["name"]);
hiddenField.setAttribute("value", params[e]["value"]);
form.appendChild(hiddenField);
}
document.body.appendChild(form);
form.submit();
}
window.onload=dopost;
var har=
//-----PASTE HERE------
</script>
</body></html>
Save this as a html file and it should open the posted form. This don't work if the site uses viewstate or if it checks the referrer.
Just a geek note: GET requests aren't supposed to change data, that's why you can bookmark them and can call them as often as you like. POST requests are allowed to change state on the server, which is why they're not easily bookmarked. On POST links you bookmark, think about if calling them multiple times will cause problems, such as buying an extra item from Amazon. – Rich Homolka – 2012-05-19T18:32:09.673