users@jersey.java.net

Re: [Jersey] Jersey Client with https

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 26 Nov 2008 17:52:31 +0100

On Nov 26, 2008, at 5:49 PM, Paul Sandoz wrote:

>
> On Nov 26, 2008, at 5:14 PM, Robert Naczinski wrote:
>
>> Hi,
>>
>> can I use jersey client with SSL ( URL starts with 'http')?
>>
>
> The URL scheme has to be "https" for HTTP-based secured by SSL.
>
> So if you use a URL say "https://host/path" it should work, since
> the Jersey client API defers to HttpURLConnection that supports the
> https scheme.
>

That should read:

   since the Jersey client API defers to HttpsURLConnection that
supports the https scheme.

via:

   URL.openConnection()

Paul.