[
https://issues.apache.org/jira/browse/HTTPCLIENT-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373308#comment-15373308
]
Jon Moore commented on HTTPCLIENT-1755:
---------------------------------------
[[email protected]] : I think that analysis would be helpful. If this is an
issue with nginx and not other HTTP servers, what leads you to think this is an
HttpClient issue and not an nginx issue, for example? If you could document the
behavior and share what you think is incorrect with respect to the relevant
protocol specifications, that would help us understand where the problem is.
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]