Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

SubPubHubbub (Real Time Publishing)

  • 21-04-2012 11:06AM
    #1
    Registered Users, Registered Users 2 Posts: 23,641 ✭✭✭✭


    How do I use SubPubHubbub on RSS feeds?


Comments

  • Posts: 5,093 ✭✭✭ [Deleted User]




  • Registered Users, Registered Users 2 Posts: 23,641 ✭✭✭✭Elmo



    Looking for a simple implementation and have start to try to use Superfeedr for this purpose.

    So how do I ping superfeedr through a HTTP POST request?


  • Posts: 5,093 ✭✭✭ [Deleted User]


    Superfeedr has similar documentation which you can find through Google. Is there a particular problem it is giving you?

    What code have you tried?


  • Registered Users, Registered Users 2 Posts: 23,641 ✭✭✭✭Elmo


    Superfeedr has similar documentation which you can find through Google. Is there a particular problem it is giving you?

    What code have you tried?

    Pinging to the superfeedr hub.

    What do I do with this code?
    # This is an example with curl. Most of languages include similar HTTP libraries.
    # The -D- param logs the response and headers.
    
    $ curl -X POST http://<your-hub-name>.superfeedr.com -d"hub.mode=publish" -d"hub.url=http://<a-feed-url>" -D-
    
    # Expected Response
    HTTP/1.1 204 No Content
    Server: nginx/0.7.62
    Date: Sun, 04 Apr 2010 13:11:38 GMT
    Connection: keep-alive
    Status: 204 No Content
    X-Runtime: 0
    Set-Cookie: 
    Cache-Control: no-cache
    

    I have made changes to <your-hub-name> and <a-feed-url>. I have placed the code in a file as a .sh file


  • Posts: 5,093 ✭✭✭ [Deleted User]


    What is the output, surely it gives an error?

    I would make a request with a curl library in PHP, Python, Ruby or some language. Yep they have lots of wrappers available and their documentation looks quite good.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 23,641 ✭✭✭✭Elmo


    What is the output, surely it gives an error?

    I would make a request with a curl library in PHP, Python, Ruby or some language. Yep they have lots of wrappers available and their documentation looks quite good.

    I am completely confused by this.

    I put the following into my RSS XML file

    [HTML]<link rel="hub" href="http://<myfeed>.superfeedr.com/&quot; xmlns="http://www.w3.org/2005/Atom&quot; />
    <link rel="self" href="http://www.myurl.com/rss.xml&quot; xmlns="http://www.w3.org/2005/Atom&quot; />[/HTML]

    The ping code doesn't do anything, as I know I haven't done any scripting for it, which I assume is the part I am missing.

    Superfeedr is now managing 1 feed and 1 subscription.


  • Posts: 5,093 ✭✭✭ [Deleted User]


    Read the developer documentation it is quite well written. The scripting in PHP is on the site pretty much.


Advertisement
Advertisement