It looks to me like the GET and POST both access the same
path, which as I understand is the page that you actually want to access. But the POST presumably needs to go through the login-handling code, which normally would live at a different URL.
Try switching the two method calls, i.e. first do a POST to the login URL (which you can find by examining the login page), and then do a GET of the page you're really interested in.
I have used
HttpUnit for stuff like this in the past, which gives you convenient access to the elements of the resulting web page. That makes it easy to maintain a "web conversation" of retrieving pages, submitting forms, accessing links and so forth.
[ October 21, 2005: Message edited by: Ulf Dittmer ]