You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2016/07/13 12:05:20 UTC

[jira] [Resolved] (HTTPCLIENT-1755) SNI problem when connecting to nginx

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-1755.
-------------------------------------------
       Resolution: Duplicate
    Fix Version/s: 4.5.3

There are no immediate plans given there have been no major bugs reported since 4.5.2. Likely in Q4 2016. 

Oleg

> SNI problem when connecting to nginx
> ------------------------------------
>
>                 Key: HTTPCLIENT-1755
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1755
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.5.2
>         Environment: ORACLE JDK 8u91
> httpclient 4.5.2
>            Reporter: Zhenua Protasevich
>            Priority: Minor
>             Fix For: 4.5.3
>
>
> 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
> {code:java}
> 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);
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org