Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
4.5.2
-
None
-
ORACLE JDK 8u91
httpclient 4.5.2
Description
Using this code causes problems when connecting to nginx server.
I tried several nginx and apache servers. this is relevant only for nginx
while using this code, when connection is established the server nginx, we get not the requested host, a standard server host
SNI in this case does not work correctly
HttpClient client = new DefaultHttpClient(); HttpGet request = new HttpGet("https://" + args[0]); HttpResponse response = null; try { response = client.execute(request); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); }
Attachments
Issue Links
- duplicates
-
HTTPCLIENT-1726 The deprecated SSLSocketFactory does not contain the SNI fix found in the SSLConnectionSocketFactory class
- Closed