Android HttpsUrlConnection failed sometimes

0

I am trying https url connection with following code

 HttpsURLConnection httpConnection = (HttpsURLConnection) objectURL.openConnection();
           
            httpConnection.setRequestMethod("POST");
            httpConnection.setDoOutput(true);
            DataOutputStream dStream = new DataOutputStream(httpConnection.getOutputStream());
            dStream.writeBytes(urlParameters);

somtime its working ,but most of time failing with following is the error message

Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xe1101788: Failure in SSL library, usually a protocol error W/System.err: error:100000df:SSL routines:OPENSSL_internal:UNEXPECTED_MESSAGE (external/boringssl/src/ssl/handshake_client.cc:1015 0xd33f6543:0x00000000) W/System.err: at com.android.org.conscrypt.NativeSsl.doHandshake(NativeSsl.java:387) W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(ConscryptFileDescriptorSocket.java:226) W/System.err: ... 21 more

android
httpsurlconnection
asked on Stack Overflow Sep 6, 2020 by user1590040

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0