YEEEEEEEEEEEEES ! it works well now !
It was... a so small error :

With the Eclipse autocompletion ( :lol:... or maybe by my brain failing...), 
I imported : 

import org.restlet.engine.http.connector.HttpClientHelper;


instead of :

import org.restlet.ext.net.HttpClientHelper;


That's all ! so many hours lost due by this line :(

So, in conclusion, if developers need to bring in their app, the minimum of 
restlet but having it working with https, on the client:

 Engine.getInstance()​.getRegisteredClient​s().clear();
         Engine.getInstance()​.getRegisteredClient​s().add(new
HttpClientHelper(new Client(Protocol.HTTPS)));

& next only add org.restlet.jar & org.restlet.ext.net.jar

& take care to add org.restlet.ext.net.HttpClientHelper & not 
org.restlet.engine.http.connector.HttpClientHelper  as import in the code...

Otherwise : it will not work in https & it will generate Error 400/Bad Request 
& it will only work in http !


Maybe, it could be added in the faq, what to verify if your client generates 
Error 400(bad request) in https but works correctly in http ?

I really would like to thank you for your patience & kindness & your example 
helped me to investigate in a so small error....

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

Reply via email to