Hi Damianos,
On Sat, Jan 15, 2011 at 3:11 PM, Damianos Mylonakis <[email protected]>wrote: > Hello! > > i am experimenting with pubsubhubbub, and i cannot understand how > Content Destribution works > I am following the draft at > > http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.html#contentdistribution > but there are not many details about content destribution. > > I understand that the hub has to notify each subscriber for this > topic. Ok. The notification is a POST request to the callback URL of > the subscriber. What will the request be like? > Well, like a POST to your callback url. The hub makes this POST request so you just have to have a listener ready and listening on the callback url. > the feed's new content will be on the request's body? Yes. > If yes, then how > will the subscriber understand for which topic the new feed entry is > about? > Well, first you could extract it from the feed itself. It should contain an atom:link with rel="self" element that gives you the url. But there is a much smarter way of doing it: use a different callback url for each feed, so that when you get a notification you know immediately what feed is involved by looking at the callback which was trigger. For example, for feed 1, I would use htt:p://domain.tld/callback/1 and for feed 2, use htt:p://domain.tld/callback/2 I hope this helps! > > Does there need to be a header entry about the topic URL maybe? > > Thank you!
