Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>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.</p> <p>A subscriber application must do 2 things :</p> <ul> <li>Acknowledge the susbcription : the hub will verify the intent of the susbcriber. It's a GET request</li> <li>Deal with incoming pings. It's a POST request.</li> </ul> <p>So let's start :</p> <ol> <li>Put a script somewhere on the web (it must be accessible from behind a firewall) which must be bale to handle to GET requests from the hub. Make sure it <em>only</em> echoes the <code>hub.challenge</code> param that it gets in the response's body and returns 200.</li> <li>Send the following from your command line : <code>curl -X POST <a href="http://pubsubhubbub.appspot.com/" rel="nofollow">http://pubsubhubbub.appspot.com/</a> -d'hub.mode=subscribe' -d'hub.verify=sync' -d'hub.topic=http://the.feed.url' -d'hub.callback=http://the.script.url' -D-</code></li> <li>You should see an incoming verification request on the script. Ideally (if you followed step 1, it should echo the hub.challenge and return a 200.</li> </ol> <p>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.</p> <p>Later...</p> <ol> <li>Your script will get a POST request. This is a notification of new content!</li> <li>Parse the raw body (XML) of this POST request, it contains the feed, only with the new entries. </li> <li>Do whatever needs to be done with the parsed content (save into a database... etc).</li> </ol> <p>I hope this helps. You can <a href="https://pubsubhubbub.appspot.com/subscribe" rel="nofollow">also use this tool</a> to debug your subscription of you need help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload