I started now with Pubsubhubbub (and all about realtime things), but I amhaving trouble with the Subscriber option.
I'm trying to develop a webapp in PHP to:
I verify that exist a library in php to the Subscriber (in Git), but using this lib can't make the Subscribe work's (get a 409 error!).
How can I do this?
The first thing I'd try is forget about libraries and try to understand what's happening in the context of a subscriber exactly. It should be really really straightforward to build a script that handles all this together.
A subscriber application must do 2 things :
So let's start :
hub.challenge
param that it gets in the response's body and returns 200.curl -X POST http://pubsubhubbub.appspot.com/ -d'hub.mode=subscribe' -d'hub.verify=sync' -d'hub.topic=http://the.feed.url' -d'hub.callback=http://the.script.url' -D-
If this was all fine the curl request that you send should tell you that the hub returned a 204. If you get anything else, check the body of the response, it will indicate you what went wrong.
Later...
I hope this helps. You can also use this tool to debug your subscription of you need help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With