public static String requestPOST(String url, String ... parameters) {
		try {
			StringBuffer paramsBuffer = new StringBuffer();
			for (int i = 0; i < parameters.length; i+=2) {
				if (paramsBuffer.length() > 0)
					paramsBuffer.append("&");
				paramsBuffer.append(URLEncoder.encode(parameters[i+0], "UTF-8"));
				paramsBuffer.append("=");
				paramsBuffer.append(URLEncoder.encode(parameters[i+1], "UTF-8"));
			}
			String params = paramsBuffer.toString();
			
			URL u = new URL(url);
			HttpURLConnection conn = (HttpURLConnection) u.openConnection();
			conn.setDoInput(true);
			conn.setDoOutput(true);
			conn.setInstanceFollowRedirects(true);
			conn.setRequestMethod("POST");
			conn.setRequestProperty("charset", "utf-8");
			conn.setRequestProperty("Content-Type", "text/plain");
			conn.setRequestProperty("Content-Length", String.valueOf(params.getBytes().length));
			for (String key : cookies.keySet()) {
				conn.setRequestProperty(
						URLEncoder.encode(key, "UTF-8"), 
						URLEncoder.encode(cookies.get(key), "UTF-8"));
			}
			
			
			DataOutputStream out = new DataOutputStream(conn.getOutputStream());
			out.writeBytes(params);
			out.flush();
			out.close();
//			
//			conn.disconnect();
			
			int code = conn.getResponseCode();
			
			StringBuffer resp = new StringBuffer();
			
			InputStream sin = conn.getInputStream();
			BufferedReader in = new BufferedReader(
					new InputStreamReader(sin));
			String line = null;
			while (true) {
				try { line = in.readLine(); }
				catch (Exception e) { break; }
				
				if (line == null) break;
				
				if (resp.length() > 0) {
					resp.append("\n");
				}
				resp.append(line);
			}
			in.close();
			
			conn.disconnect();
			
			return resp.toString();
		} catch (Exception e) {
			Blog.log("GT error: " + e);
			return null;
		}
	}