File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,17 @@ public void Exp(String url, String cookie){
8484
8585 public static HashMap <String , String > httpGet (String url ,String cookie ){
8686 HttpRequest httpRequest = HttpRequest .get (url ).followRedirects (false ).header ("Cookie" ,cookie );
87+ httpRequest .trustAllCerts ();
88+ httpRequest .trustAllHosts ();
8789 hashMap .put ("body" , httpRequest .body ());
8890 hashMap .put ("code" , String .valueOf (httpRequest .code ()));
8991 return hashMap ;
9092 }
9193
9294 public static HashMap <String , String > httpPost (String url , String data ){
9395 HttpRequest httpRequest = HttpRequest .post (url ).send (data );
96+ httpRequest .trustAllCerts ();
97+ httpRequest .trustAllHosts ();
9498 hashMap .put ("body" , httpRequest .body ());
9599 hashMap .put ("code" , String .valueOf (httpRequest .code ()));
96100 hashMap .put ("set-cookie" ,httpRequest .header ("Set-Cookie" ));
You can’t perform that action at this time.
0 commit comments