Hello Robert,
> providing an SSLContext instance to the HttpCore code. [...]
> With HttpClient all the details are handled for me.

As Odi pointed out, not-yet-commons-ssl should be your friend.
You still have to prepare the SSLContext, but the details of
the key files will be hidden.

> My other requirement is support for connection proxies.  Although
> HttpExecutionContext defines a HTTP_PROXY_HOST constant, I
> haven't found any other code that handles managing the proxy
> connection. Is there any code for doing this?  Perhaps there's
> some alpha code in HttpClient 4.

There's not much to manage for plain HTTP. You connect to the
proxy instead of the target server and send the request there.
You have to put the full URL into the request line, not just
the path as for a direct connection.
For SSL connections through proxies, things get trickier. Have
a look at DefaultClientRequestDirector in HttpClient 4.0. That
code cannot be used directly for NIO, since it uses blocking IO.
But you'll see how to establish a tunnel for the SSL connection.

hope that helps,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to