Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting current Page from URLConnection  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Thanks
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Out of all the wonderfully helpful experts here on the Ranch, no one knows this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!