// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.GetMethod;

public class HttpGet {
    public static void main(String[] args) throws Exception {
        HttpClient client = new HttpClient();
        GetMethod met = new GetMethod("http://www.eksperten.dk/");
        client.executeMethod(met);
        String html = met.getResponseBodyAsString();
        System.out.println(html);
    }
}
