I'm trying to use httpBuilder to connect to a webservice using a proxy but am somehow unable to do so. I found a question which can potentially help to solve my problem (part of it at least) here: How to use HTTPBuilder behind a proxy with authentication But no valid answer was given.
What I basically do is: create a new httpBuilder passing my URL setting the proxy with the setProxy(host, port, 'http') method http.request(GET, XML){ parse XML and do stuff... }
Question 1: can I specify the host as hostname or only as IP address? I think so but wanted to check. Question 2: what if the proxy itself requires some auth?
I have it running ok on my dev machine which uses another network with no need of a proxy. When I deploy it to the pre-prod testing environment I get a "connection refused" exception.
Edit: I'm deploying the whole thing to a tomcat 6.39 server