Latest Updates: pubsubhubbub RSS

  • Basic Authentication against the Superfeedr HTTP PubSubHubbub API using a .NET HttpWebRequest

    Phil Leggetter 10:58 am on July 4, 2010 | 0 Permalink | Reply
    Tags: , , pubsubhubbub,

    It would appear that setting the Credentials property of a HttpWebRequest still leads to authentication failure against the Superfeedr HTTP PubSubHubbub API. This might be because the way the HttpWebRequest works is that it first waits to be challenged for credentials via a 401 (not authorized) and then replies with the authentication (more info include PreAuthenticate here).

    So, this doesn’t work:

    string username = "username";
    string password = "password";
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("url-here");
    request.Credentials = new NetworkCredential(username, password);
    

    To work around this you need to force the authentication to be sent. I found the details of how to do this in a blog post by Ian Dykes here:

    http://devproj20.blogspot.com/2008/02/assigning-basic-authorization-http.html

    But for fullness here’s the code:

    string username = "username";
    string password = "password";
    byte[] authBytes = Encoding.UTF8.GetBytes(username + ":" + password.ToCharArray());
    request.Headers["Authorization"] = "Basic " + Convert.ToBase64String(authBytes);
    

    Permalink

    | Leave a comment  »

     
  • Using real-time web software and technology to distribute events

    Phil Leggetter 11:08 am on February 27, 2010 | 1 Permalink | Reply
    Tags: , , pubsubhubbub, PUSH,

    I’ve just come across William Vambenepe’s blog and an article called “Waiting for events (in Cloud APIs)“ where he discusses how an event system is missing from cloud vendor APIs.

    With my interest in Comet I straight away thought of this as a solution to the notification requirement and it’s interesting that the article goes on to talk about subscription management and then moves on to thinking about the delivery mechanism which are all key aspects of a good comet implementation:

    How do you deliver notifications? Do you keep HTTP connections open through tricks similar to how self-updating web pages work (e.g. COMET, long polling and soon WebSockets)? Or do you just provide a listener endpoint to which the notifier tries to connect (which, in the case of public cloud deployments, means you need to have a publicly-addressable listener, but hopefully not on the same Cloud infrastructure). Do you use XMPP? AMQP? Email? Can I have you hold my events and let me come pull them?

    (More …)

     
  • Real-Time Rich Internet Applications (RTRIA)

    Phil Leggetter 10:15 am on October 29, 2009 | 2 Permalink | Reply
    Tags: , pubsubhubbub, , , , , rssCloud, ,

    Real-Time Rich Internet Applications (RTRIAs) are RIAs that consume and display real-time data. They have all the characteristics of an RIA with the added feature that data is being pushed to them in real-time as soon as it becomes available. This is in contrast to the current polling solution employed by most RIAs or other web applications that display updating data.

    I mentioned RTRIAs for the first time back in April 2009 in a post called “What is the real-time web” on the Caplin Systems Platformability blog, and since then there has been a real-time web explosion. The “real-time web” is now the buzz phrase around the Internet that everybody is jumping on. Back in April I set up a Google Alert for the term “real-time web”. Back then I got maybe one Google Alert a day for this term, probably less. Now, I get at least two dense emails a day from Google with people using the term for all sorts of things; real-time web stats, real-time analytics, real-time search, rssCloud, pubsubhubbub, the list goes on. This is not the real-time web! Whilst some of the things on this list will help  the web become truly real-time (rssCloud and pubsubhubbub may even form the back bone), none of these things give the user a truly real-time web experience.

    (More …)

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
esc
cancel