Thanks for your reply bruno.

One thing i didnt mention in my earlier post was that my client app runs as a 
portlet under liferay portal framework. So I am looking into the possibility of 
liferay messing things up, but i doubt it.

I have tried your code in  standalone java application and I get the following 
error. 
Exception in thread "main" Bad Request (400) - Bad Request
        at org.restlet.resource.ClientResource.get(ClientResource.java:452)

here is the code from the app
"
                String uri = "https://www.google.com/";;
                ClientResource clientResource = new ClientResource(new 
Context(), new Reference(uri));
                //clientResource.setProtocol(Protocol.HTTPS);
                clientResource.get();
                if (clientResource.getStatus().isSuccess()
                         && clientResource.getResponseEntity().isAvailable()) {
                     Representation rep = clientResource.getResponseEntity();
                     try {
                                rep.write(System.out);
                        } catch (IOException e) {
                                // TODO Auto-generated catch block
                                e.printStackTrace();
                        }
"


Also regarding the security certificate. Here is the error.
"
https://xyz.com uses an invalid security certificate.
The certificate is not trusted because the issuer certificate has expired.
(Error code: sec_error_expired_issuer_certificate)
"


Thanks
pNut

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

Reply via email to