I've asked such question before and can not get any answer.
I can share my way of how to get the data. In Java, there are lots of Web-Test tools just like a tiny-browser-client which can filling the form, submit button and get the session. I can find same libraries in Python. Sorry I know nothing about JS or PHP but I think there should be some same libraries. (Especially for PHP)
BTChina,veryCD