Tag Archives: http

httpclient中使用HTTPS的方法

import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import... Read More | Share it now!

Android HTTP request

You should make your HTTP request in a separate thread. NetworkOnMainThreadException says that you are trying to make your network operation on the main thread. docs at developer.android.com 1] Use simple Thread Thread t = new Thread(new Runnable()... Read More | Share it now!