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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
