code: public static String get(String url, Map<String, String>... head) {
          StringBuilder sb = new StringBuilder();
          BufferedReader in = null;
          try {
  
              URL realUrl = new URL(url);
              URLConnection connection = realUrl.openConnection();
              if (head != null && head.length != 0) {
                  Map<String, String> header = head[0];
                  for (Map.Entry<String, String> h : header.entrySet()) {
                      connection.setRequestProperty(h.getKey(), h.getValue());
                  }
              }
              connection.connect();
  
              in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
              String line;
              while ((line = in.readLine()) != null) {
                  sb.append(line);
              }
  
          } catch (Exception e) {
              e.printStackTrace();
          } finally {
              try {
                  if (in != null) {
                      in.close();
                  }
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
          return sb.toString();
      }
docs: 使用GET方式请求目标网站
  
  @param url 完整的请求url
  @return
  @author acexy@thankjava.com
  @date 2016年1月4日 下午5:59:17
  @version 1.0