A "Byte" Client


import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;


public class A_Client {
    CloseableHttpResponse response1;
    public static void main(String[] args) {
        try {
            CloseableHttpClient httpclient = HttpClients.createDefault();
            CloseableHttpResponse response1=null;
            try {
                HttpGet httpGet = new HttpGet("http://hoare.cs.umsl.edu/servlet/siegel/A_Service");
                response1 = httpclient.execute(httpGet);
                HttpEntity entity1 = response1.getEntity();
                byte[] as_bytes=EntityUtils.toByteArray(entity1);
                System.out.println("The Stream length is "+as_bytes.length);
                System.out.println("The first 12 bytes are:");
                for(int k=0;k<12;k++)System.out.println(as_bytes[k]);
                EntityUtils.consume(entity1);
            } finally {
                response1.close();
                httpclient.close();
            }
        } catch (Exception e) {
        }
    }
}

The ASCII Table