wood burning stoves 2.0*
The moose likes Java in General and the fly likes get file path  from url ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "get file path  from url ?" Watch "get file path  from url ?" New topic
Author

get file path from url ?

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147


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



How to get that path from url ?


Searchable nature photo gallery: http://agrozoo.net/jsp/Galery.jsp?l2=en
Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147
the answer to this is casting urlConnection as HttpURLConnection

something like this:

 
wood burning stoves
 
subject: get file path from url ?