为什么我在代理后面对这些内容引擎的调用会失败?

发布于 2024-09-03 07:26:00 字数 388 浏览 4 评论 0原文

我正在测试几个 API,但在 Zemanta 和 OpenCalais 之间犹豫不决。

我可以在家里完美地使用两者,但在代理背后的公司,即使运行相同的示例,它们也无法工作。

我正在运行 这个例子这个,都是Java。

如何设置代理才能正常工作?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

提笔书几行 2024-09-10 07:26:00

对于 Zemanta 来说,这是您在拨打电话之前需要做的事情,

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

不熟悉 Open Calais,您可能需要做一些不同的事情才能使其正常工作。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文