static void rewriteResponseHeaders(URLConnection conn,
			HttpServletResponse resp) {
		Map<String, List<String>> map = conn.getHeaderFields();
		if (map != null) {
			for (Map.Entry<String, List<String>> header : map.entrySet()) {
				if (header.getKey().equals("content-length")) {
					continue;
				}
				if (header.getKey().equals("content-encoding")) {
					continue;
				}
				if (header.getKey().equals("set-cookie")) {
					continue;
				}
				if (header.getKey().equals("set-cookie2")) {
					continue;
				}
				if (header.getKey().equals("set-cookie3")) {
					continue;
				}
				StringBuilder s1 = new StringBuilder();
				for (String v : header.getValue()) {
					if (s1.length() > 0)
						s1.append(", ").append(v);
					else
						s1.append(v);
				}
				resp.setHeader(header.getKey(), s1.toString());
			}
		}
	}