相关文章推荐
淡定的松树  ·  java - Unable to ...·  1 年前    · 
讲道义的罐头  ·  gson.internal.LinkedTr ...·  1 年前    · 

Welcome to Support!

Search for an answer or ask a question of the zone or Customer Support.

Need help? Dismiss Show All Questions sorted by Date Posted

Show

sorted by

arun arun

Unable to tunnel through proxy - Error

Hi,

I am totally new to scontrol.

Here's what we did.

We created new scontrol using java applet which calls sforce APIs to interact with salesforce.com

The problem is when we try to access this signed applet, we are getting
java.io.IOException: Unable to tunnel through proxy: Proxy returns "HTTP/1.1 400 Bad Request"

I am assuming this is because, I am inside our company's firewall and access through proxy server.

Is there any work around to solve this problem?

thanks for your time,

Arun

DevAngel DevAngel

Hi arun,

Try this prior to creating the SoapBindingStub instance:

Properties props= new Properties(System.getProperties());
props.put("https.proxySet", "true");
props.put("https.proxyHost", "localhost");
props.put("https.proxyPort", "8082");
Properties newprops = new Properties(props);
System.setProperties(newprops);

Of course, change localhost to your proxy host and the port to your proxy host port.