Skip to content

Instantly share code, notes, and snippets.

Fernando Costantini Alfafc

Block or report user

Report or block Alfafc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Alfafc
Alfafc / App.java
Created Oct 12, 2019
Example to avoid runtime error: javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name.java
View App.java
package com.example;
import com.m.arch.utils.NoSNISSLSocketFactory;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.HttpClientBuilder;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
You can’t perform that action at this time.