Standalone Web Client
I'm using HttpURLConnection to connect to a URL. I can connect and get the response code, all the HTML content, etc. But I'm unable to get the URL.
So let's say I post/submit using the URL http://www.mydomain.com/page1.jsp. Then my response comes back and the URL is now www.mydomain.com/page2.jsp. I can get all the HTML that page2.jsp created, but I cannot get the URL itself.
I need to programmatically get the response URL, as it may have directed me to page3.jsp, who knows. I'm having an IMPOSSIBLE time trying to get this working.

