• Post Reply Bookmark Topic Watch Topic
  • New Topic

get file path from url ?  RSS feed

 
Miran Cvenkel
Ranch Hand
Posts: 208
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: 208
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the answer to this is casting urlConnection as HttpURLConnection

something like this:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!