hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Becke" <mbe...@gmail.com>
Subject Re: Taking advantage of HTTPClient below the 'top' layer?
Date Wed, 31 Jan 2007 03:16:51 GMT
Yep, that's probably what you're looking for.

Mike

On 1/30/07, Eric Hermanson <eric@alum.mit.edu> wrote:
> Hmmm, I may have answered my own question.  It appears
> org.apache.commons.httpclient.ProxyClient is what I need.
>
> Thanks,
> Eric
>
>
> On Jan 30, 2007, at 3:44 PM, Eric Hermanson wrote:
>
> > Hello,
> >
> > Please excuse this potentially naive question, but I have been
> > searching the HTTPClient codebase today and I can't seem to put my
> > finger on where I can 'plug' into the code to take advantage of the
> > Proxy connection and authentication pieces only.  In other words, I
> > don't want to use the HTTPClient class to send/receive data, I want
> > to use my custom Socket connection as-is.
> >
> > My existing Proxy code looks like this:
> >
> >                     Socket tunnel = new Socket(proxyHost,
> > proxyPort.intValue());
> >                   doTunnelHandshake(tunnel, serverAddress,
> > clientRequestsListeningPort);
> >                     Socket clientRequestsSocket =
> > ((javax.net.ssl.SSLSocketFactory)sslSocketFactory()).createSocket
> > (tunnel, serverAddress, clientRequestsListeningPort, true);
> >                   ... from here on I use my own input/output streams...
> >
> > Where 'doTunnelHandshake' is my custom Proxy connection code which
> > is turning out to be way too simplistic (i.e. doesn't support
> > Digest, NTLM, or Custom authorization).  Can anyone give me a quick
> > heads up on where I can start to convert this code to use the Proxy
> > authentication in HTTPClient and then communicate over my socket as
> > I normally would?
> >
> > Thank You,
> > Eric
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-user-
> > help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message