Your problem has nothing to do with HttpURLConnection. In any case, you have to fetch the whole page and then cut the HTML-part of the page and print it.
There are some libraries which help to parse even bad HTML, but I suppose (I'm almost sure) that they do not work with Java 1.1. Most of them will need Java 5 to work.
If you can be sure that the source won't change in the future, you could do some Regular Expressions magic and cut the interesting part of the page. But who will render the HTML to something like PostScript or PCL?