An error occurs when connecting to a IPv6
server via HttpsURLConnection
:
[error] Hostname [xxxx:xxxx:x:xx::xxx] provided via SNI and
hostname xxxx:xxxx:x:xx::xxx provided via HTTP are different
To connect to same IPv6 Apache server(version 2.2.27)
, Apache HttpClient
works without any problem, but HttpsURLConnection
doesn't. So it may not be a server side issue. Does anyone see this error before when using HttpsURLConnection
?