Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Setting proxy for RESTHostManager.createTransientHostFrom() not working

$
0
0

Hello folks,

 

I tried to invoke a URL request via RESTHostManager.createTransientHostFrom(), where the the proxy is set programmatically.

But it seems it does not pick up the proxy setting. I used the script I found at

 

Executes a transient RESTOperation for a transient RESTHost · GitHub

 

I replaced the proxy setting with our settings:

host.proxyHost = "<nice proxy server>";

host.proxyPort = 81;

 

I always get a timeout.

 

If I do the same request via a permanent REST host from the inventory with proper proxy settings it works.

So, I am stuck. Has somebody a hint for me?

 

Thx

Cheers

Roland


Viewing all articles
Browse latest Browse all 175326


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>