Proxy chaining

2013-05-01 Thread R Smith
Hello, I have a question on proxy chaining. I know that httpclient supports a single hop proxy, (Source -> P1 -> Target) out of the box by using TUNNEL_TARGET. However, when I provide an extra proxy in the chain using a custom HttpRoutePlanner#determineRoute(), (Source -> P0 -> P1 -

Re: Proxy chaining

2013-05-02 Thread Oleg Kalnichevski
On Wed, 2013-05-01 at 09:58 -0400, R Smith wrote: > Hello, > > I have a question on proxy chaining. > > I know that httpclient supports a single hop proxy, (Source -> P1 -> > Target) out of the box by using TUNNEL_TARGET. However, when I provide an > extra proxy

Re: Proxy chaining

2013-05-02 Thread R Smith
out if Im barking up the right tree with the CONNECT method for proxy chaining. I can proxy chain using command line telnet, so I am just trying to recreate the same calls in httpclient at this point. Thanks again for all the help, -Ryan On Thu, May 2, 2013 at 3:06 PM, Oleg Kalnichevski wrote

Re: Proxy chaining

2013-05-03 Thread Oleg Kalnichevski
where internally that I am missing so I can see > it being used as an example? > > Just trying to figure out if Im barking up the right tree with the CONNECT > method for proxy chaining. I can proxy chain using command line telnet, so > I am just trying to recreate the same calls i

Re: Proxy chaining

2013-05-03 Thread R Smith
> see > > it being used as an example? > > > > Just trying to figure out if Im barking up the right tree with the > CONNECT > > method for proxy chaining. I can proxy chain using command line telnet, > so > > I am just trying to recreate the same calls in httpcli

Re: Proxy chaining

2013-05-03 Thread Oleg Kalnichevski
ernally that I am missing so I can > > see > > > it being used as an example? > > > > > > Just trying to figure out if Im barking up the right tree with the > > CONNECT > > > method for proxy chaining. I can proxy chain using command line telnet, > > so

Re: Proxy chaining

2013-05-03 Thread R Smith
for > > > > chaining but I should make HttpConnect() a private inner class of my > > > > custom RequestDirector class so end users wont call it? Does > HttpClient > > > > use the "CONNECT" method anywhere internally that I am missing so I > can

Re: Proxy chaining

2014-06-05 Thread galengt
ed: host:www.xhaus.com port: -1 scheme: http CONNECT status code: 405 The body comes back with an error that includes: "The requested method CONNECT is not allowed for the URL /index.html". I am guessing I missed something in createTunnelToProxy, any help would be appreciated! -

Re: Proxy chaining

2014-06-06 Thread R Smith
00 > CONNECT Issued: host:119.2.41.98 port: 8080 scheme: http > CONNECT status code: 405 > CONNECT Issued: host:www.xhaus.com port: -1 scheme: http > CONNECT status code: 405 > > The body comes back with an error that includes: "The requested method > CONNECT is not allowed for

Re: Proxy chaining

2014-06-06 Thread galengt
agedConn.markReusable(); > > return false; > > } > > > > > > I added a couple printlns in there, here is an example output: > > CONNECT Issued: host:119.2.41.98 port: 8080 scheme: http > > CONNECT status code: 200 > > CONNECT Issued: host:119.

Re: Proxy chaining

2014-06-15 Thread arcivanov
vision in order to accomplish that. Thank you! -- View this message in context: http://httpcomponents.10934.n7.nabble.com/Proxy-chaining-tp19965p23618.html Sent from the HttpClient-User mailing list archive at Nabble.com. - To

Re: Proxy chaining

2014-06-16 Thread Oleg Kalnichevski
On Sun, 2014-06-15 at 18:24 -0700, arcivanov wrote: > Hi Oleg, > > RequestDirector and respectively DefaultRequestDirector have been deprecated > as of 4.3 with no replacement suggested/provided. > > We need to implement chained proxies with SOCKS5 support and it would be > great if you could br

Re: Proxy chaining

2014-06-16 Thread arcivanov
ks for your help! - Arcadiy -- View this message in context: http://httpcomponents.10934.n7.nabble.com/Proxy-chaining-tp19965p23630.html Sent from the HttpClient-User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Proxy chaining

2014-06-17 Thread Oleg Kalnichevski
rom the MainClientExec related > to route handling and delegate the rest - seems quite cumbersome and would > require quite a lot of validation testing. > > Am I missing something major? > > Thanks for your help! > > - Arcadiy > Hi Arcadiy Unfortunately a

Re: Proxy chaining

2014-06-17 Thread arcivanov
Oleg Kalnichevski wrote > Unfortunately at this point there is no way around forking HttpClient if > you want to implement proxy chaining. We can however consider making it > possible to replace MainClientExec with a custom implementation. > > Oleg Thanks Oleg, fair enough. Wou

Re: Proxy chaining

2014-06-18 Thread Oleg Kalnichevski
On Tue, 2014-06-17 at 20:44 -0700, arcivanov wrote: > Oleg Kalnichevski wrote > > Unfortunately at this point there is no way around forking HttpClient if > > you want to implement proxy chaining. We can however consider making it > > possible to replace MainClientExec with a

Re: Proxy chaining

2014-06-18 Thread arcivanov
Oleg Kalnichevski wrote > On Tue, 2014-06-17 at 20:44 -0700, arcivanov wrote: >> Oleg Kalnichevski wrote >> > Unfortunately at this point there is no way around forking HttpClient >> if >> > you want to implement proxy chaining. We can however consider m

Proxy Chaining in httpclient 4.3

2014-04-24 Thread Matt Bialek
Hello, I am attempting to implement proxy chaining, I know it is not supported out of the box but my project uses httpclient and they are stubborn about using it. I sent up a custom MainClientExec and created a method for tunnel to Proxy. What i dont understand is the comment in the source code of

Implementing Proxy Chaining in Apache HTTP

2012-03-17 Thread Toby
Hi Folks, I posted a question on Stack Overflow (at http://stackoverflow.com/questions/9698935/proxy-chaining-in-apache-http) and it was suggested I ask here so here goes... I'd like to send http messages through something that I can control (mainly so that I can record statistics and stas

Re: Proxy Chaining in httpclient 4.3

2014-04-25 Thread Oleg Kalnichevski
On Thu, 2014-04-24 at 13:10 -0400, Matt Bialek wrote: > Hello, > I am attempting to implement proxy chaining, I know it is not supported out > of the box but my project uses httpclient and they are stubborn about using > it. I sent up a custom MainClientExec and created a method f

Re: Implementing Proxy Chaining in Apache HTTP

2012-03-18 Thread Oleg Kalnichevski
On Sat, 2012-03-17 at 12:27 +, Toby wrote: > Hi Folks, > > I posted a question on Stack Overflow (at > http://stackoverflow.com/questions/9698935/proxy-chaining-in-apache-http) > and it was suggested I ask here so here goes... > > I'd like to send http messages th

Re: Implementing Proxy Chaining in Apache HTTP

2012-03-18 Thread Alan Ho
ds, Alan Ho On Mar 17, 2012, at 7:27 AM, Toby wrote: > Hi Folks, > > I posted a question on Stack Overflow (at > http://stackoverflow.com/questions/9698935/proxy-chaining-in-apache-http) > and it was suggested I ask here so here goes... > > I'd like to send http mess

Re: Implementing Proxy Chaining in Apache HTTP

2012-03-19 Thread Toby
;t got around > to it. > > Let me know if you would want to look at the code or get a demo. (or if > anyone wants to take a look) > > Regards, > Alan Ho > > On Mar 17, 2012, at 7:27 AM, Toby wrote: > >> Hi Folks, >> >> I posted a question on St

Re: Implementing Proxy Chaining in Apache HTTP

2012-03-19 Thread Oleg Kalnichevski
> anyone wants to take a look) > > > > Regards, > > Alan Ho > > > > On Mar 17, 2012, at 7:27 AM, Toby wrote: > > > >> Hi Folks, > >> > >> I posted a question on Stack Overflow (at > >> http://stackoverflow.com/questions/9698935/

Re: Implementing Proxy Chaining in Apache HTTP

2012-03-19 Thread Toby
We are planning to opensource the statistics recorder, but haven't got >>> around to it. >>> >>> Let me know if you would want to look at the code or get a demo. (or if >>> anyone wants to take a look) >>> >>> Regards, >>> Alan Ho >

Re: Implementing Proxy Chaining in Apache HTTP

2012-03-22 Thread diyfiesta
;> anyone wants to take a look) >> > >> > Regards, >> > Alan Ho >> > >> > On Mar 17, 2012, at 7:27 AM, Toby wrote: >> > >> >> Hi Folks, >> >> >> >> I posted a question on Stack Overflow (at >> >> &g

Re: Implementing Proxy Chaining in Apache HTTP

2012-03-22 Thread Oleg Kalnichevski
On Thu, 2012-03-22 at 02:54 -0700, diyfiesta wrote: > Great stuff... > > Something like this? > Yep. Oleg > DefaultHttpClient client = new DefaultHttpClient(connectionManager, > httpParameters) { > @Override > protected RequestDirector > createClientReques