I'd argue for the usage of python, but that's just me.

For the most part language is irrelevant and any of the mentioned would work.

For research you will want something like the LiveHTTP headers add-on for firefox, or Charles.

These tools will help you record and analyze the POST data showing you what to script.