Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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: 0 ✭✭✭ [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: 0 ✭✭✭ [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: 0 ✭✭✭ [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: 0 ✭✭✭ [Deleted User]


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


Advertisement