|
@@ -131,10 +131,10 @@ public class HttpUtils {
|
|
httppost.setHeader("User-Agent", USER_AGENT);
|
|
httppost.setHeader("User-Agent", USER_AGENT);
|
|
|
|
|
|
List<Cookie> list = cookieStore.getCookies();
|
|
List<Cookie> list = cookieStore.getCookies();
|
|
-// for (Cookie ck : list) {
|
|
|
|
-// System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
|
|
|
|
-// }
|
|
|
|
-// System.out.println("-------------------------------------");
|
|
|
|
|
|
+ for (Cookie ck : list) {
|
|
|
|
+ System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
|
|
|
|
+ }
|
|
|
|
+ System.out.println("-------------------------------------");
|
|
for (String key : headers.keySet()) {
|
|
for (String key : headers.keySet()) {
|
|
httppost.setHeader(key, headers.get(key));
|
|
httppost.setHeader(key, headers.get(key));
|
|
}
|
|
}
|