dev@jersey.java.net

Fwd: [Jersey] How to send a request with Basic Authentication

From: Nicolas Griso <nicolas.griso_at_gmail.com>
Date: Fri, 7 Jan 2011 15:08:13 +0100

Hello,

Here's one:

Client client = new Client();
client.addFilter(new HTTPBasicAuthFilter(user, password));
WebResource webResource = client.resource(url);
...

HIH

Nicolas G

On Fri, Jan 7, 2011 at 2:59 PM, VINCENT Matthieu (Prestataire)
<Matthieu.VINCENT_at_cpexterne.org> wrote:
> Hi everyone,
>
>
>
>     I’m desperated to find an example to do a BASIC authentication with
> Jersey for a REST webservice.
>
>
>
> Can anyone help me ?
>
>
>
> Thanks a lot in advance
>
>
>
> Matt