Code example for AllowAllHostnameVerifier

0
 
	private static final String LOG_TAG = "Xusr";   
	   
    private static final TrustManager[] TRUST_MANAGER = { new NaiveTrustManager() };   
   
    private static final AllowAllHostnameVerifier HOSTNAME_VERIFIER = new AllowAllHostnameVerifier();   
   
    private static final int SOCKET_TIMEOUT = 3000;   
   
    /**   
     * Send an HTTP(s) request with POST parameters.   
     *    
     * @param parameters   
     * @param url   
     * @throws UnsupportedEncodingException   
     * @throws IOException   
     * @throws KeyManagementException   
     * @throws NoSuchAlgorithmException   
     */   
     
    public static int getNetType(Object manager) {