String cqurl = "http://www.hq6m.com/game/?mod=cai&act=board&cai_id=1";
String jxurl = "http://www.hq6m.com/game/?mod=cai&act=board&cai_id=2";
try {
Connection conn = ConnectionManager.getInstance().getConnection(cqurl);
// conn.cookie("id", "21");
conn.cookie("PcAicaip", "3307f%2FVmMBYVuaqdGe8QIi6otjFMA7yaPM%2Bh%2Fg3Gk1K2o4VadpS%2B3dFciwhDSxqYTnA%2F9KqvHrt0JECP3pc%2FxksZwewPkoJ27ZVdjXs2cxaWKmKLyLx5ljyn%2B%2Bitpg%2FqWq6yvHP%2FCypVgdU%2BBntiEGYC%2BYvrSrb83V7ceawUHWE");
conn.cookie("PcAicain", "haha");
conn.cookie("playTimes06481010C78141AB89F3EBBC43A1E9A9", "0");
conn.cookie("5pao_VID_06481010C78141AB89F3EBBC43A1E9A9", "true");
Document doc = conn.post();
String res = doc.text();
res = res.substring(res.indexOf("{"), res.indexOf("}")+1);
JSONObject obj = JSONObject.fromObject(res);
String title = obj.getString("title");
String numbers = obj.getString("numbers");
System.out.println("CQ>>> "+title+": "+numbers);
conn = ConnectionManager.getInstance().getConnection(jxurl);
// conn.cookie("id", "21");
conn.cookie("PcAicaip", "3307f%2FVmMBYVuaqdGe8QIi6otjFMA7yaPM%2Bh%2Fg3Gk1K2o4VadpS%2B3dFciwhDSxqYTnA%2F9KqvHrt0JECP3pc%2FxksZwewPkoJ27ZVdjXs2cxaWKmKLyLx5ljyn%2B%2Bitpg%2FqWq6yvHP%2FCypVgdU%2BBntiEGYC%2BYvrSrb83V7ceawUHWE");
conn.cookie("PcAicain", "haha");
conn.cookie("playTimes06481010C78141AB89F3EBBC43A1E9A9", "0");
conn.cookie("5pao_VID_06481010C78141AB89F3EBBC43A1E9A9", "true");
doc = conn.post();
res = doc.text();
res = res.substring(res.indexOf("{"), res.indexOf("}")+1);
obj = JSONObject.fromObject(res);
title = obj.getString("title");
numbers = obj.getString("numbers");