Avatar

Level 4

Thanks for the reply David.

I am working from behind a firewall (proxy) . That might be the reason that I am not getting the intended response.

While I tried the same thing through java,I applied following approach and it worked.

URL iurl = new URL("https://localhost/nl/jsp/soaprouter.jsp");

Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("ip of proxy ", 8080/*port*/));

HttpURLConnection  req = (HttpURLConnection)iurl.openConnection(proxy);

req.setRequestMethod("POST");

req.setRequestProperty("Content-Type", "text/plain; charset=utf-8");

any idea on how to achieve this via javascript?

-Thanks

Senthil