php - Differences between the static variables of SSLSocketFactory -


i'm implementing web server in php , doing connection android app,i'm using sslsocketfactory differences between static options of sslsocketfactory:

  1. strict_hostname_verifier

  2. browser_compatible_hostname_verifier

  3. allow_all__hostname_verifier

    defaulthttpclient ret = null; //sets parameters httpparams params = new basichttpparams(); httpprotocolparams.setversion(params, httpversion.http_1_1); httpprotocolparams.setcontentcharset(params, "utf-8"); params.setbooleanparameter("http.protocol.expect-continue", false);  //registers schemes both http , https schemeregistry registry = new schemeregistry(); registry.register(new scheme("http", plainsocketfactory.getsocketfactory(), 80));  final sslsocketfactory sslsocketfactory = new mysslsocketfactory(sslcontext); //final sslsocketfactory sslsocketfactory = sslsocketfactory.getsocketfactory();  sslsocketfactory.sethostnameverifier(sslsocketfactory.strict_hostname_verifier); registry.register(new scheme("https", sslsocketfactory, 443));  threadsafeclientconnmanager manager = new threadsafeclientconnmanager(params, registry); return ret = new defaulthttpclient(manager, params); 


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -