Re: Newbie question.. reading location header



john wrote:
URLConnection newu = u.openConnection();


The code returns some server info, but no rediect info, such as the
redirected link.

By default, it should follow the redirects to the redirected page.

http://download.java.net/jdk6/docs/api/java/net/HttpURLConnection.html#setFollowRedirects(boolean)

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.