private static DTRequest doRequest(DTRequest domainToolsRequest, URL url) throws DomainToolsException{
		int response_code = 0;
		StringBuilder sbResponse = new StringBuilder();
		String sLine = "";

		try{
			System.out.println("url "+url);
			httpConnection = (HttpURLConnection) url.openConnection();
			httpConnection.setRequestMethod("GET");
			httpConnection.setDoOutput(true);
			response_code = httpConnection.getResponseCode();

			if(response_code >= 400 ){ manageError(domainToolsRequest,response_code); }

			//Read the response
			InputStream  response = httpConnection.getInputStream();
			BufferedReader bufReader = new BufferedReader(new InputStreamReader(response));
			while ((sLine = bufReader.readLine()) != null){
				sbResponse.append(sLine);
				sbResponse.append(lineSeparator);
			}
			if(domainToolsRequest.getFormat().equals(DTConstants.XML)){
				domainToolsRequest.setResponseXML(sbResponse.toString());
			}
			else if(domainToolsRequest.getFormat().equals(DTConstants.HTML)){
				domainToolsRequest.setResponseHTML(sbResponse.toString());
			}
			else if(domainToolsRequest.getFormat().equals(DTConstants.OBJECT)){
				domainToolsRequest.setResponseObject(DTNodesService.getDomainToolsNode(sbResponse.toString()));
			}
			else{
				domainToolsRequest.setResponseJSON(sbResponse.toString());
			}

		}catch (ProtocolException e) {
			e.printStackTrace();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}catch (IOException e) {
			e.printStackTrace();
		}finally{
			httpConnection.disconnect();
		}
		return domainToolsRequest;
	}