Hi,

I am writing some client code to tunnel a propriety protocol over http/ssl optionally via a NTLMv2 proxy. I have the NTMLv2 authentication, working and I can successfully GET over https.

Now I want to get hold of the tunnelled socket so that I can send/receive my full-duplex protocol. This looks easy to do in HttpClient v3.x using the ProxyClient object (see below). How is this achieved in HttpClient v4.1?

HttpClient-v3.x
ProxyClient.ConnectResponse response = proxyclient.connect();
Socket socket = response.getSocket();

HttpClient-v4.1
HttpResponse response = httpclient.execute(targetHost, httpget);
HttpEntity entity = response.getEntity();  // No Socket in here

Thanks,
Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to