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

SubPubHubbub (Real Time Publishing)

Options

Comments

  • Registered Users Posts: 5,246 ✭✭✭conor.hogan.2




  • Registered Users 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?


  • Registered Users Posts: 5,246 ✭✭✭conor.hogan.2


    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 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


  • Registered Users Posts: 5,246 ✭✭✭conor.hogan.2


    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 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.


  • Registered Users Posts: 5,246 ✭✭✭conor.hogan.2


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


Advertisement