WebClient Proxy Settings

633 views
Skip to first unread message

Alex Soto

unread,
Jun 13, 2017, 6:49:58 AM6/13/17
to vert.x
Hello, I want to create a io.vertx.rxjava.ext.web.client.WebClient instance but honouring some JDK system properties. Concretely:
  • http.proxyHost
  • https.proxyHost
  • http.nonProxyHosts
  • http.proxyPort
  • https.proxyPort 
So I have checked that I would need to create io.vertx.core.net.ProxyOptions. But now my question is, I saw that the ProxyType can only be http, socks4 and 5. So in case of Https should I set the type to Http as well? And second question is how I can set the nonProxyHosts, is this possible with current implementation? Thank you very much.


Julien Viet

unread,
Jun 13, 2017, 7:06:45 AM6/13/17
to ve...@googlegroups.com
Hi Alex,



On Jun 13, 2017, at 12:49 PM, Alex Soto <aso...@gmail.com> wrote:

Hello, I want to create a io.vertx.rxjava.ext.web.client.WebClient instance but honouring some JDK system properties. Concretely:
  • http.proxyHost
  • https.proxyHost
  • http.nonProxyHosts
  • http.proxyPort
  • https.proxyPort 
So I have checked that I would need to create io.vertx.core.net.ProxyOptions. But now my question is, I saw that the ProxyType can only be http, socks4 and 5. So in case of Https should I set the type to Http as well?



And second question is how I can set the nonProxyHosts, is this possible with current implementation? Thank you very much.

we don’t support non proxy hosts (yet).




--
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/6771cdaf-0c3d-4daf-ae01-7fc2fd79c1c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Soto

unread,
Jun 13, 2017, 9:12:52 AM6/13/17
to vert.x
Ok, sorry for not seen clear this, but I suppose that I can use https without need to use SOCKS right?

El dimarts, 13 juny de 2017 13:06:45 UTC+2, Julien Viet va escriure:

Julien Viet

unread,
Jun 13, 2017, 10:03:38 AM6/13/17
to ve...@googlegroups.com
yes you can use HTTP tunneling for https using ProxyType.HTTP

Reply all
Reply to author
Forward
0 new messages