// Instantiate the Http default client
org.apache.http.client.HttpClient client = new DefaultHttpClient();
// Create an Http GET request using the Norine REST service URI
HttpGet request = new HttpGet("http://bioinfo.cristal.univ-lille.fr/norine/rest/id/123");
// Set accepted MIME type (XML)
request.setHeader("Accept", "application/xml");
// Send the request
HttpResponse response = client.execute(request);
// Finally, get the response in a buffered reader
BufferedReader rd = new BufferedReader
(new InputStreamReader(response.getEntity().getContent()));
Code Formatted by ToGoTutor