David,
Thanks for your input - anyone who might want to do this (not sure why!) but here is the solution:
import java.io.*;
import java.net.*;
public class DownloadHTMLFile {
public static void main(String[] args) {
URL llURL = null;
try {
//llURL = new URL("
llURL = new URL("
System.out.println("\n***GENERAL INFO SECTION***"

;
System.out.println("protocol = " + llURL.getProtocol());
System.out.println("host = " + llURL.getHost());
System.out.println("filename = " + llURL.getFile());
System.out.println("port = " + llURL.getPort());
}catch(MalformedURLException e){
// Malformed URL
System.out.println("Error in given URL"

;
return;
}
try {
URLConnection connection = llURL.openConnection();
System.out.println("\n***HEADER INFO SECTION***"

;
int n=1;
boolean done = false;
while (!done){
String headerKey = connection.getHeaderFieldKey

;
String headerVal = connection.getHeaderField

;
if (headerKey!=null || headerVal!=null) {
System.out.println(headerKey+"="+headerVal + " " + n);
} else {
done = true;
}
n++;
}
System.out.println("\n***COOKIE INFO SECTION***"

;
String cookie = connection.getHeaderField("Set-Cookie"

;
// get the specific LL Cookie at element 6
String LLcookie = connection.getHeaderField(6);
// print out for posterity
System.out.println("Cookie: " + cookie);
System.out.println("LLCookie: " + LLcookie);
System.out.println("\n***HTML RESPONSE INFO SECTION***"

;
//llURL = new URL("
//
//llURL = new URL("
llURL = new URL("
// open a second connection
URLConnection connection2 = llURL.openConnection();
// set the cookie in the response
connection2.setRequestProperty("Cookie",LLcookie);
// NOT USED - EARLY EXPERIMENT WITH setFollowRedirects
//HttpURLConnection uc = (HttpURLConnection)connection2;
//HttpURLConnection.setFollowRedirects(true);
BufferedReader br = new BufferedReader(new InputStreamReader(connection2.getInputStream()));
String line = "";
while ((line = br.readLine()) != null)
System.out.println(line);
br.close();
}catch(UnknownHostException e){
System.out.println("Unknown Host"

;
return;
}catch(IOException e){
System.out.println("Error in opening URLConnection, Reading or Writing"

;
return;
}
}
}
/*
From the looks of it the nexturl redirection is not fully escaped:
When it should be:
For those who see the cut off url, the nexturl should be:
nextURL=%2Fllservlet%2Flivelink.exe%3Ffunc%3Dll%26objId%3D56267%26objAction%3Dxmlexport
Livelink needs the entire next url escaped. I would try this and post the results.
*/