5 Replies Latest reply on May 15, 2019 12:07 AM by lshgfksahkjashgkja

    Setting proxy for RESTHostManager.createTransientHostFrom() not working

    lshgfksahkjashgkja Lurker

      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