Hello, I have a Restlet application that needs to connect through a proxy (Tinyproxy, https://banu.com/tinyproxy/) for outgoing HTTP(S) connections. I'm using the Apache HttpClient connector and it works just fine for direct HTTP, direct HTTPS and proxied HTTP connections.
But proxied HTTPS connections to SSL sites fail with an I/O exception (org.apache.http.NoHttpResponseException). However, "curl" has no problems with SSL connection through tinyproxy, so the server should be fine. I've written a small sample program and posted it to Pastebin to demonstrate the problem: http://pastebin.com/v6a5rmhn If you run the program and call http://localhost:8080/connect in your browser it should call https://www.google.com/ through a local tinyproxy server. But it fails with the following stack trace: http://pastebin.com/raw.php?i=mZPqiS32 I've tried both Restlet 2.1.2/2.2-M3 and HttpClient 4.2.4/4.3-beta1, but the error is always the same. Any suggestions what I could try to solve this problem? Here are my Ivy dependencies for this sample program: <dependencies defaultconfmapping="*->default"> <!-- httpclient 4.1 is buggy, force at least 4.2 --> <dependency org="org.apache.httpcomponents" name="httpclient" rev="4.2.4" /> <!-- Restlet --> <dependency org="org.restlet.jse" name="org.restlet" rev="2.1.2" /> <dependency org="org.restlet.jse" name="org.restlet.ext.httpclient" rev="2.1.2" /> </dependencies> Sebastian ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3053425