Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get file path from url ?

 
Miran Cvenkel
Ranch Hand
Posts: 196
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


after redirections in behind ... url.openConnection... opens the following file:



How to get that path from url ?

 
Miran Cvenkel
Ranch Hand
Posts: 196
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the answer to this is casting urlConnection as HttpURLConnection

something like this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic