commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Maha Arachchi <>
Subject Does httpcore supports the http CONNECT method?
Date Tue, 23 Nov 2010 12:18:33 GMT
Hi devs,

I would like to know whether http CONNECT method is supported in httpcore. I
went through the source of httpcore and httpcore-nio. But I was unable to
find out a responsible code for this.

CONNECT method is used in tunneling (which I am interested in). I have
studied about tunneling and I have understood the following facts (which I
believe is correct).

To create a tunnel, our http request should contain the following header,

User-agent: Mozilla/4.0
<<< empty line >>>

Then the proxy server tries to create a connection to the server:port
mentioned in the request. If it succeeds, following response is sent to the

HTTP/1.0 200 Connection established
Proxy-agent: My-Proxy/1.1
<<< empty line >>>

After that, proxy server starts sending data via the tunnel (abstract idea).

Can somebody please tell me whether tunneling is supported or direct me to
the relevant code segment to look at.

Thanks in advance.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message