Java 和 Pubsubhubbub
我只是想尝试来自谷歌代码(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论