I'm using ClientResource to call OpenAM's (http://www.forgerock.com/openam.html) authentication service as in:
ClientResource resource = new ClientResource(http://glassfish.devbox.local:8080/openam_s951/identity/authenticate?username=pmorris&password=secret); When I call resource.getStatus() no matter whether the credentials are correct or not the status is ALWAYS 200, even when the exit status has clearly been set to 401. It works as expected when I use HttpURLConnection as in: URL url = <same as above>; HttpURLConnection connection = (HttpURLConnection) url.openConnection(); The connection.getResponseCode() correctly differentiates between good and bad credentials with a 200 or a 401. Of course, if I'm going to use Restlet I don't want to have to mix in java.net stuff so any thoughts? ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2697091

