Hello Vidya,
I 've tested successfully the sample code. Could you tell us what is the
content of your classpath, especially what Restlet extension (grizzly,
simple, jett, etc) are you using?
best regards,
Thierry Boileau
> Thanks a lot for pointer. I tried to use the code provided. But it did not
> work. For both requests made in client i got 401 response.
>
> I have a query though.. where do we speficy the authentication is HTTP digest
> on server side?
> Dont we need to specify that in the guard?
>
> Following is the code for guard -
>
> // Use the basic guard
> Guard guard = new Guard(component.getContext().createChildContext(), "realm",
> baseUris, "serverKey");
>
> // Load a single static login/secret pair.
> guard.getSecrets().put("login", "secret".toCharArray());
>
> guard.setNext(restlet);
>
> Here, nowhere we specify the authentication type...
>
> Regards,
> -Vidya
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=990521
>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=990583