Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get a URL's real path?

807605Aug 30 2007 — edited Aug 31 2007
Hi all,

I need to get the real path(name) of a URL. What I mean is for example:
When you write "http://tr.wikipedia.org/wiki" on your browser, it is automatically directed to the web page, "http://tr.wikipedia.org/wiki/Ana_Sayfa". Also java too can direct "http://tr.wikipedia.org/wiki" this page to that page which is a great thing. However I need to get the real page name which is "http://tr.wikipedia.org/wiki/Ana_Sayfa" when I connect to this page "http://tr.wikipedia.org/wiki" with java' URL and URLConnection classes. Is there a way (by java) that I can get that real page path(name), all help is appreciated, thanks...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2007
Added on Aug 30 2007
14 comments
471 views