Why are my calls to these content engines failing when behind a proxy?

346 Views Asked by At

I am testing a couple of APIs and am undecided between Zemanta and OpenCalais.

I can use both perfectly at home, but at the company behind the proxy, they won't work, even when running the same examples.

I am running this example and this, both Java.

How can I setup the proxy so it works?

1

There are 1 best solutions below

1
On

For Zemanta, this is what you need to do before you make the call,

System.setProperty("https.proxyHost", proxyHost);
System.setProperty("https.proxyPort", proxyPort);

Not familiar with Open Calais, you may have to do something different for it to work.