Have a look to my proxy (<a href="svn://scm.gforge.inria.fr/svn/gazelle/Maven/gazelle-proxy/trunk">svn</a>), it compiles using Maven 3.<div>The gazelle-proxy-netty module should be the most interesting part, you will find some examples of the HTTP(s) proxy examples in <font class="Apple-style-span" face="'courier new', monospace">net.ihe.gazelle.proxy.netty.App</font>. Anyway, you need some basic knowledge on certificates before using anything related to TLS...</div>
<div>Gabriel<br><br><div class="gmail_quote">2011/9/22 ups <span dir="ltr"><<a href="mailto:handsome.ups@gmail.com">handsome.ups@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Actually all I want is to receive the response from server when sending<br>
request of such type:<br>
<br>
CONNECT <a href="http://www.google.com:443" target="_blank">www.google.com:443</a> HTTP/1.1<br>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101<br>
Firefox/7.0<br>
Proxy-Connection: keep-alive<br>
Host: <a href="http://www.google.com" target="_blank">www.google.com</a><br>
<br>
Here is my code:<br>
<br>
ClientBootstrap bootstrap = new ClientBootstrap(factory);<br>
bootstrap.setPipelineFactory(new ChannelPipelineFactory() {<br>
<br>
public ChannelPipeline getPipeline() throws Exception {<br>
<br>
return Channels.pipeline(new HttpResponseDecoder(), new<br>
HttpChunkAggregator(Integer.MAX_VALUE),<br>
new HttpRequestEncoder(), new<br>
ResponseHandler(container));<br>
}<br>
}<br>
});<br>
ChannelFuture channelFuture = bootstrap.connect(new<br>
InetSocketAddress(host, port));<br>
<br>
channelFuture.addListener(new ChannelFutureListener() {<br>
<br>
public void operationComplete(ChannelFuture future) throws<br>
Exception {<br>
future.getChannel().write(container.getRequest());<br>
}<br>
});<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HTTPS-handling-in-Netty-tp6815990p6819366.html" target="_blank">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HTTPS-handling-in-Netty-tp6815990p6819366.html</a><br>
</font><div><div></div><div class="h5">Sent from the Netty User Group mailing list archive at Nabble.com.<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</div></div></blockquote></div><br></div>