Java 和 Pubsubhubbub

发布于 2024-10-08 02:38:34 字数 680 浏览 0 评论 0原文

我只是想尝试来自谷歌代码(https://code.google.com/p/pubsubhubbub-java/downloads/list)的 pubsubhubbub 的 java 客户端。所以我下载了代码,在 SuperFeedr 上注册并尝试连接到他们的集线器。事实上,我修改了订阅者客户端提供的测试类。

sb.subscribe("http://superfeedr.com/hubbub",
                "https://some.blog", hostname, null, null);

hostname 是我使用 Web 类创建的服务器的名称。可通过网络访问服务器。

但我得到的是 GetThread 类中的这个异常: org.apache.http.auth.MalformedChallengeException:身份验证质询为空

有人有提示吗?

干杯,

Andi

PS:到目前为止,让 PuSH 工作是相当乏味的,例如在 SuperFeedr,他们告诉你要做什么(http://superfeedr.com/documentation#pubsubhubbub_implementation),但不告诉你如何做?我尝试实现推送自己所需的内容(HttpClient、带参数的 PostMethod 等),但没有任何效果......

I just wanted to try out the java client for pubsubhubbub from google code (https://code.google.com/p/pubsubhubbub-java/downloads/list). So I downloaded the code, signed up at SuperFeedr and tried to connect to their hub. In fact I modified the test class the is provided with the subscriber client.

sb.subscribe("http://superfeedr.com/hubbub",
                "https://some.blog", hostname, null, null);

hostname is the name of the server I created by using the class Web . Server is reachable from the web.

But I all get is this exception in the GetThread class:
org.apache.http.auth.MalformedChallengeException: Authentication challenge is empty

Does anybody have a hint?

Cheers,

Andi

PS: Up to now it's quite tedious to get PuSH working, e.g. at SuperFeedr they tell you what to do (http://superfeedr.com/documentation#pubsubhubbub_implementation) but not how? I tried to implement what's necessary for push my self (HttpClient, PostMethod with parameters,etc.) but nothing works....

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文