Christophe Thanks for you reply. Below is a log entry following my attempt to subscribe to "http://pubsubhubbub.appspot.com":
74.125.75.4 - - [08/Oct/2010:13:34:45 +0100] "GET /feed/callback?xhub.subscription=d0b79c084c2d24bdf5df62e45e7aeca0&hub.verify_token=1672036224caf0fe4df4ac8.570603301286541284&hub.challenge=RNPpwPzDJObkTyyNCKIOpd6JEseYc0o-16c8vh8K-kV4t33DtTDwDp5V8pK2P1RlsMQIONbgKzFT_jHVaRjsW6YAyBb-YxibpUT7RY2WlknpABgZXp_1J7edymPcKvdP&hub.topic=http%3A%2F%2Fwww.google.com%2Freader%2Fpublic%2Fatom%2Fuser%2F00446741949858159700%2Flabel%2FStephen%2520Fry&hub.mode=subscribe&hub.lease_seconds=2592000 HTTP/1.1" 200 128 "-" "AppEngine-Google; (+http://code.google.com/appengine; appid: pubsubhubbub)" I interpret this as the hub trying to verify my subscription request and my callback function replying with a '200' and 128 bytes which is the hub.challenge (as it should?). However, I don't get any posts and if I use the Hub subscription form at https://pubsubhubbub.appspot.com/subscription-details I get 'not verified'. The request looks like: https://pubsubhubbub.appspot.com/subscription-details?hub.callback=http%3A%2F%2Fportal.go-optimisation.co.uk%2Ffeed%2Fcallback&hub.topic=http%3A%2F%2Fwww.google.com%2Freader%2Fpublic%2Fatom%2Fuser%2F00446741949858159700%2Flabel%2FStephen%2520Fry&hub.secret= If I subscribe using the form on the same page, my callback function receives a GET to verify the subscription but the GET does not have an xhub.subscription parameter so my callback function fails with a 404. If I spoof the xhub.subscription parameter then my callback fails as the verify.token does not match. Love the protocol - beginning to hate trying to get it to work :) Kind regards, Bill On 5 October 2010 19:12, k42b3 <[email protected]> wrote: > hi Bill, > >> How can I check that the hub shares my app's view of the subscription >> status (that I am subscribed to the feed)? > > this depends on the hub that you are using. If you use the google reference > hub "http://pubsubhubbub.appspot.com" you can check at > "https://pubsubhubbub.appspot.com/subscribe" whether you are subscribed to a > specific topic. Other hubs have probably not such an option. > >> What else can I do to find out what the problem is? > > If you are unsure whether you are subscribe to a topic simply send an > subscription request to the hub and look at the http response code ... HTTP > 204 means that your subscription is active HTTP 400 or 500 if there is an > error with your subscription. > > best regards > Christoph >
