I am writing a simple program that obtains some user input, then puts this input into database, then another program reads that data and tries to send it to another site. The problem is, that this site has a form validation, so i need my user input to be exactly the same as a validation on target site.

So now, my question is, how can i easily check what javascript code is triggered on this site, when i try to send invalid data?