Hello!

After a few weeks of absence, I am trying once again to set up restlet in my 
OSGi environment. Using version 2.2-M1.

I am making a call like this:

            final Client client = new Client( new Context(), Protocol.HTTPS );
            final ClientResource clientResource = new ClientResource( url );
            clientResource.setNext( client );
            final ChallengeResponse authentication = new ChallengeResponse( 
ChallengeScheme.HTTP_BASIC, "pwd", "" );
            clientResource.setChallengeResponse( authentication );
            final Representation r = clientResource.get();
            r.write( System.out );
            r.release();
            client.stop();

Sometimes I get back a valid reply, but most times I get back this error:

        Communication Error (1001) - The connector failed to complete the 
communication with the server

What confuses me is why this would work sometimes, but not others. Any hints?

Best regards,
=David

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3053860

Reply via email to