title: Server Name Indication (SNI) on Java
body: <p>Can anyone help me get started on carrying out HTTP connections with server name indication in Java?</p>
  
  <p>I'm trying to request content from a site I'm adminstering. I've been using Apache's HttpClient library, but my request for secure content fails because the website only uses SNI for HTTPS, and SNI isn't enabled in the DefaultHttpClient. I've looked for instruction on how to approach this within Apache's HttpClient library, but I see end up with this document: <a href="http://hc.apache.org/httpclient-3.x/sslguide.html" rel="noreferrer">http://hc.apache.org/httpclient-3.x/sslguide.html</a>, which is out of date (referring to code back when HttpClient and HttpCore were part of Apache's commons package).</p>
  
  <p>So... any help?</p>