Also, jSoup? Is it using browser DOM to load the page? Or is it extracting the DOM from the HTTP medium?

Is that some sort of parsing library? If it works the way I think it does you don't need to parse anything. All the values you need are present in said DOM and all you need to do is access them. Or you could just send user and password and the JavaScript will handle the rest being that the required values are in the page.

I may look into this. I could be wrong depending on what kind of library that is.