public Document HttpRequest(String httpRequestType, URL url) throws IOException {
			  
			  HttpURLConnection con = (HttpURLConnection) url.openConnection();
			  con.setRequestMethod(httpRequestType);
			  con.setDoOutput(true);
			  con.setDoInput(true);
			  con.connect();

			  Document responseDocument = null;
			  
			  try {
			   SAXBuilder builder = new SAXBuilder();
			   responseDocument = builder.build(con.getInputStream());
			  } catch (Exception e) {
			   // TODO: handle exception
			  }

			  if (con.getResponseCode() != 200) {
			   System.out.print("An network error occurred: "
			     + con.getResponseCode() + " - " + con.getResponseMessage());
			  }

			  con.disconnect();

			  return responseDocument;
			 }