Hi all, Recently our server stopped working and I think I have found out why. This is what I have observed with the new ssl ext package.
1. If I want to use the httpclient for HTTPS clients I now need to do
Engine.getInstance().getRegisteredClients()
.add(0, new org.restlet.ext.httpclient.HttpClientHelper(null));
This because the ssl extension loads the Internal HTTPs client as well.
2. You need to include the ssl extension if you want to use the httpclient for
HTTPS client requests. This is not specified as a dependency in the httpclient
extension pom
3. The Internal HTTPS and httpclient connectors behave differently. The use
case I am executing is the following.
3.1 Set up a http server on localhost with one resource that opens a client
resource and retrieve the contents of that resource and send it forward.
If I use httpclient it works fine for both http/https resources. If I use the
internal https client connector it will throw an exception "cannot change mode
after SSL traffic has started". I am not sure which connector behaves correctly.
See the attach source code
Thanks,
martin
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2732150
Fetch.java
Description: Binary data
RestApp.java
Description: Binary data
App.java
Description: Binary data

