R
Roedy Green
I am trying to write some code that chases HTML redirect chains and
makes a list of URLs that have been permanently moved and where they
went.
The code I think should work to get at a "Location:" field in the
response header does not work. I just get null.
urlc.connect();
String location = urlc.getHeaderField( "Location" );
I found some code on the net that claims to work, but it is pretty
ugly:
http://www.kodejava.org/examples/198.html
Is there something obvious I am missing?
makes a list of URLs that have been permanently moved and where they
went.
The code I think should work to get at a "Location:" field in the
response header does not work. I just get null.
urlc.connect();
String location = urlc.getHeaderField( "Location" );
I found some code on the net that claims to work, but it is pretty
ugly:
http://www.kodejava.org/examples/198.html
Is there something obvious I am missing?