Getting current Page from URLConnection
posted 14 years ago
I am retrieving a web page using URLConnection and saving the page to a file on my hard drive. What I am wanting to know is this: Is there a way to get the name of the html file on the server. For instance, if I go to www.yahoo.com, how do I know if the page I get to first is index.html, index.htm, index.asp, bla.bla, or whatever?