hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Using HttpConnection and Proxy Tunneling
Date Fri, 17 Mar 2006 10:32:57 GMT
On Fri, 2006-03-17 at 01:44 +0100, Thierry Sechao wrote:
> Thanks a lot,
> 
> using ProxyClient, it work fine!
> Do I need to set any proxy connection timeout if I don't want the proxy 
> to close the connection?
> 

Thierry,

You probably still want to set a socket timeout to make sure the
connection will not stay blocked forever in case the proxy server locks
up

Oleg


> Oleg Kalnichevski wrote:
> > On Thu, 2006-03-16 at 16:35 +0100, Thierry Sechao wrote:
> > 
> >>Thanks for your reply
> >>
> >>Sorry, I did not subscribe to the mailing list before posting my 
> >>question, so I can not reply to your response.
> >>
> >>I don't know if it is possible, but I would like to get the OutputStream 
> >>so that I can send information back to the server through the same 
> >>connexion.
> >>If I use the HttpClient.executeMethod(), how can I get the OutputStream?
> >>
> >>Maybe, there is a better solution?
> >>
> > 
> > 
> > There is. Just use ProxyClient included in the Jakarta Commons
> > HttpClient 3.0 distribution:
> > http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/ProxyClient.html
> > 
> > Here's a sample app, which you can use as a reference:
> > http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/examples/ProxyTunnelDemo.java?view=markup
> > 
> > 
> > Oleg
> > 
> 
> ---------------------------------------------------------------------
> 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