what i usually do is i save a local copy of the form or use some sort of browser extension that let's me modify the page source, opera let's you do this
then i modify action so it submits to localhost:8080 then i listen with nc -k -l 8080 and save what the form outputs and recreate this in my own program