This repository was archived by the owner on Nov 24, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import java .io .Reader ;
88import java .net .URL ;
99import java .nio .charset .Charset ;
10- import java .security .GeneralSecurityException ;
1110import java .security .MessageDigest ;
1211import java .security .NoSuchAlgorithmException ;
1312import java .security .cert .X509Certificate ;
1413
15- import javax .net .ssl .HttpsURLConnection ;
16- import javax .net .ssl .SSLContext ;
1714import javax .net .ssl .TrustManager ;
1815import javax .net .ssl .X509TrustManager ;
1916
@@ -45,12 +42,14 @@ public static String readJson(Reader rd) throws IOException {
4542 }
4643
4744 public static JSONObject JSONRequest (String format , String data , String php ){
48- try {
45+ System .setProperty ("http.agent" , "Chrome" );
46+ /* try {
4947 SSLContext sc = SSLContext.getInstance("SSL");
5048 sc.init(null, Utils.trustAllCerts, new java.security.SecureRandom());
5149 HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
5250 } catch (GeneralSecurityException e) {
5351 }
52+ */
5453 JSONObject json = null ;
5554 InputStream is ;
5655 try {
You can’t perform that action at this time.
0 commit comments