public String getPage(String url,int type){
		String responseBody = "";
		if(type == GET){
			HttpGet getpage = new HttpGet(url);
			//getpage.addHeader("Host", "cache.tv.qq.com");
			//getpage.addHeader("Proxy-Connection", "keep-alive");
			//getpage.addHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36");
			//getpage.addHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
			//getpage.addHeader("", "");
			System.out.println("executing request" +getpage.getRequestLine());
			try {
	            // Create a custom response handler
	            ResponseHandler<String> responseHandler = new ResponseHandler<String>() {

	                public String handleResponse(final HttpResponse response) 
	                		throws ClientProtocolException, IOException {
	                    int status = response.getStatusLine().getStatusCode();
	                    if (status >= 200 && status < 300) {
	                        HttpEntity entity = response.getEntity();
	                        return entity != null ? EntityUtils.toString(entity) : null;
	                    } else {
	                        throw new ClientProtocolException("Unexpected response status: " + status);
	                    }
	                }

	            };
	            responseBody = client.execute(getpage, responseHandler);
	            System.out.println("----------------------------------------");
	            //System.out.println(responseBody);
	            System.out.println("----------------------------------------");
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}else if(type == POST){
			
		}
		
		return responseBody;
	}