This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a rather vexing problem: My current project is a web agent that is supposed to log into a website, do stuff, and log off again. Now, I managed to download the login page and I know I managed to login, because I can download the next page. But then, if I try to "do stuff", that is, if I try to download the next page, I get a page that basically says "You're already logged in". I tried this with the page that the web agent will work on, and since it didn't work, I tried it on our web site. But still the same problem:
1. I download the login page (which is not strictly necessary) 2. I send the login data and receive the first "logged-in" page 3. I try to download the next page and get our page that tells me that I'm already logged in
That is a major problem, because that keeps me from logging off properly.
I include both the Java code and a log file from Firefox's LiveHTTP module. And now for some code:
Just in case anybody is wondering, this is what the LiveHTTP module for the FireFox logs when I log in "manually"