Caused by: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: 485454502f312e31203430302042616420526571756573740d0a43616368652d436f6e74726f6c3a206e6f2d63616368650d0a507261676d613a206e6f2d63616368650d0a436f6e74656e742d547970653a20746578742f68746d6c3b20636861727365743d7574662d380d0a50726f78792d436f6e6e656374696f6e3a20636c6f73650d0a436f6e6e656374696f6e3a20636c6f73650d0a436f6e74656e742d4c656e6774683a20333134360d0a0d0a3c48544d4c3e3c484541443e0d0a20203c5449544c453e52657175657374204572726f723c2f5449544c453e0d0a20203c2f484541443e0d0a20203c424f44593e0d0a20203c7461626c65206267636f6c6f723d2257484954452220626f726465723d2230222063656c6c70616464696e673d2230222063656c6c73706163696e673d2230222077696474683d2231303025223e0d0a20203c747220616c69676e3d2263656e746572223e0d0a20203c74643e0d0a20203c7461626c65206267636f6c6f723d2257484954452220626f726465723d2230222063656c6c70616464696e673d2230222063656c6c73706163696e673d2230222077696474683d22353230223e0d0a202020202020202020203c74626f64793e0d0a2020202020202020202020203c747220616c69676e3d227269676874223e0d0a202020202020202020202020202020202020203c74643e0d0a202020202020202020202020202020202020203c494d47205352433d22687474703a2f2f666d2d65752d6c6f6e2d7061632e666d2e7262736772702e6e65743a383038302f696d616765732f5242536c6f676f312e4749462220424f524445523d2230223e0d0a2020202020202020202020202020202020203c2f74643e0d0a2020202020202020202020203c2f74723e0d0a2020202020202020202020203c74723e0d0a2020202020202020202020202020202020203c74643e0d0a2020202020202020202020202020202020203c464f4e5420666163653d22415249414c2c48454c56223e3c6269673e3c7374726f6e673e3c2f7374726f6e673e3c2f6269673e3c42523e3c2f464f4e543e3c62723e0d0a2020202020202020202020202020202020203c2f74643e0d0a2020202020202020202020203c2f74723e0d0a202020202020202020203c626c6f636b71756f74653e0d0a202020202020202020203c54523e202020203c54443e0d0a2020202020202020202020202020202020203c464f4e5420666163653d22415249414c2c48454c56223e203c6269673e52657175657374204572726f722028696e76616c69645f72657175657374293c2f6269673e3c42523e3c42523e3c2f464f4e543e0d0a2020202020202020202020202020202020203c2f54443e0d0a202020202020202020203c2f54
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.core.http.HttpClientRequest;
import io.vertx.core.net.ProxyOptions;
import io.vertx.core.net.ProxyType;
public class Client extends AbstractVerticle {
// Convenience method so you can run it in your IDE
public static void main(String[] args) {
Vertx.vertx().deployVerticle(new Client());
}
@Override
public void start() throws Exception {
HttpClientRequest request = vertx.createHttpClient(new HttpClientOptions().
setProxyOptions(new ProxyOptions()
.setType(ProxyType.HTTP)
.setHost("localhost")
.setPort(8080)
.setUsername("me")
.setPassword("pwd"))
.setSsl(true)
.setTrustAll(true)
.setVerifyHost(false)
)
.put(4443, "localhost", "/", resp -> {
System.out.println("Got response " + resp.statusCode());
resp.bodyHandler(body -> System.out.println("Got data " + body.toString("ISO-8859-1")));
});
request.end();
}
}
--
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/a35f3f74-60d9-446e-9226-10a6e9e846a3%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/a5db0d00-b930-41b8-9c39-f4b8f274e1bf%40googlegroups.com.
On Sep 20, 2016, at 7:58 PM, Fuzz <farzad.pe...@gmail.com> wrote:Thanks Julien.It would be certainly useful to understand the rational. Persuading our corporation to change the behaviour of the proxy will be interesting!
In the meantime, perhaps I can work around this by having another implementation of HttpClient ... hmm ..
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8f150d4b-c660-4c15-a9ed-093f70c08343%40googlegroups.com.
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.core.http.HttpClientRequest;
import io.vertx.core.net.ProxyOptions;
import io.vertx.core.net.ProxyType;
public class Client extends AbstractVerticle {
// Convenience method so you can run it in your IDE
public static void main(String[] args) {
Vertx.vertx().deployVerticle(new Client());
}
@Override
public void start() throws Exception {
HttpClientRequest request = vertx.createHttpClient(new HttpClientOptions().
setProxyOptions(new ProxyOptions()
.setType(ProxyType.HTTP)
.setHost("localhost")
.setPort(3128)
.setUsername("user")
.setPassword("user"))
.setSsl(true)
.setTrustAll(true)
.setVerifyHost(false)
)
.get(443, "www.lehmann.cx", "/", resp -> {
System.out.println("Got response " + resp.statusCode());
resp.bodyHandler(body -> System.out.println("Got data " + body.toString("ISO-8859-1")));
});
request.end();
}
}
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5e4b820d-cb8e-470b-9d60-f02f93e0efc3%40googlegroups.com.