hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Siegmar <oli...@siegmar.org>
Subject Re: Can't get SSL / https to work
Date Tue, 14 Sep 2010 19:43:37 GMT
Am Tuesday 14 September 2010 schrieb sebb:
> On 14 September 2010 18:09, Oliver Siegmar <oliver@siegmar.org> wrote:
> > Hello,
> > 
> > I'd like to access content that is provided by https but my code always
> > fails with an SSLException. I tried it with a very simple example:
> > 
> > 
> > import org.apache.http.client.HttpClient;
> > import org.apache.http.client.methods.HttpGet;
> > import org.apache.http.impl.client.DefaultHttpClient;
> > 
> > public class HttpsTest {
> > 
> >    public static void main(final String[] args) throws Exception {
> >        final HttpClient client = new DefaultHttpClient();
> >        final HttpGet req = new HttpGet("https://www.apache.org");
> >        client.execute(req);
> >    }
> > 
> > }
> 
> Works OK for me.
> 
> What version of HttpClient are you using?

client 4.0.2 with core 4.0.1

> Java?

1.6.0_21 64-bit

> OS?

Linux

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


Mime
View raw message