--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/be0315c6-e24a-4c3c-8f53-41faefafb039%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/81ac6d15-6054-4def-ba84-1d89e628e384%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/89091c88-0799-41fe-84cc-e8fcb9ed37b3%40googlegroups.com.
Unfortunately there is no code in vert.x currently to do that and you cannot use the vert.x classes for https when you implement the proxy CONNECT method since its not possible to tack a http request onto an already opened connection (I think at least its not possible).
Doing a proxy request involves the following steps:
Socket connect to proxy ip/port, write "CONNECT example.com:443 HTTP/1.1\r\n\r\n" to the socket, read the reply as http headers, it will be something like
"HTTP/1.0 200 Connection established\r\n\r\n"
(it might be possible to do that request as CONNECT request with the http client)
Now, you can do upgradeToSsl, do some validation of the certificate and after that you should be able to write the complete http request into the NetSocket and read the response headers and the response body from the socket.
On Monday, March 21, 2016 at 4:10:47 PM UTC+1, Dominic Rübelzahn wrote:Sadly I don't get it running... I tried the tunneling, created a connection to the proxy and then upgraded to ssl. Then i created a new GET request but when I call end() and error is thrown saying that the connection was closed. I have no glue so far what I am doing wrong and how to get it running.
Does anyone have a working tunneling example for ssl in vertx 3?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/89091c88-0799-41fe-84cc-e8fcb9ed37b3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/ac090015-c542-4611-8273-87f4d942eede%40googlegroups.com.