Tampilkan postingan dengan label http. Tampilkan semua postingan
Tampilkan postingan dengan label http. Tampilkan semua postingan

Mixing degrees of publicness in HTTP

Posted by Unknown Senin, 05 Mei 2008 0 komentar
At the Data Sharing Workshop the other day, we had a discussion about how to combine OAuth and Feeds, which I was reminded of by Tim Bray's discussion of Adriana and Alec's VRM proposal today.
The session was tersely summarized here, but let me recap the problem.

When you are browsing the web, you often encounter pages that show different things depending on who you are, such as blog, wikis, webmail or even banking sites. They do this by getting you to log in, and then using a client-side cookie to save you the bother of doing that every time. When you want to give a site access to another one's data (for example when letting Flickr check your Google Contacts for friends), you need to give it a URL to look things up at.

The easy case is public data - then the site can just fetch it, or use a service that caches public data from several places, like the Social Graph API. This is like a normal webpage, which is the same for everyone, returning a HTTP 200 response with the data.

The other common case is where the data is private. OAuth is a great way for you to delegate access to a web service for someone else, which is done by returning an HTTP 401 response with a WWW-Authenticate: OAuth header showing that authentication is needed. If the fetching site sends a valid Authorization header, it can have access to the data.

The tricky case is where there is useful data that can be returned to anyone with a 200, but additional information could be supplied to a caller with authentication (think of this like the social network case, where friends get to see your home phone number and address, but strangers just get your hometown). In this case, returning a 401 would be incorrect,as there is useful data there.

What struck me was that in this case, the server could return a 200, but include a WWW-Authenticate: OAuth header to indicate that more information is available if you authenticate correctly. This seems the minimal change that could support this duality, and much easier than requiring and signalling separate authenticated and unauthenticated endpoints through a HTML-level discovery model, or, worse, adding a new response to HTTP. What I'd like to know from people with deeper HTTP experience than me is whether this is viable, and is it likely to be benign for existing clients — will they choke on a 200 with a WWW-Authenticate header?

HTTP does have a 203 response meaning Non-Authoritative Data, but I suspect returning that is more likely to have side effects.


Baca Selengkapnya ....

iPod progress

Posted by Unknown Jumat, 14 September 2007 0 komentar

I got an new iPod nano for my birthday yesterday. I considered the iPhone and iPod Touch, but their poor keyboard won't replace my Sidekick, and they omitted the most important features.
Specifically, iPhone lacks instant messaging, and both iPhone and iPod touch have Wifi, yet unaccountably don't support iTunes song sharing.

A bit of context here — back when we were pitching Wifi and Zeroconf to Steve Jobs at Apple, the killer demo was the iTunes + QuickTime sharing of music and videos — Macs in the same room finding each other and making their music libraries and videos mutually available, whether you have a router or not. The underlying protocol here is called DAAP, which is just some conventions for using HTTP 1.1 to play remotely and update the song list.

However, the edition of iTunes this went out in was unfortunately the same one that added the iTunes Store. From our developer point of view, the fact that there were 4 separate open source interoperating implementations of DAAP within a week was a big burst of validation for our efforts, but this caused huge confusion among the Record Labels that Jobs had invested so much time in schmoozing to set the store up. Eventually, after too many arguments with Label execs where he tried to explain "but the songs bought from iTunes Store won't be playable remotely, just the CD-ripped ones", he insisted the protocol be changed, which it was, several times.

The social sharing of music via iTunes is still a new and lovely feature of offices, campuses and coffee shops everywhere. But the iPhone users are left out in the cold. They can't see iTunes libraries, they can't share their own songs. Watching the launch of the "buy the song playing in Starbucks" feature, my immediate thought was "Steve, do you want to change the world, or do you just want to sell sugared coffee to kids?"

That said, I am a big fan of the 206 dpi screen on the new iPod nano. I did the maths, and that implies a full HD screen (1920x1200 with room for a controller bar) that is about 9.5 inches by 6 inches - sounds like a nice new Apple subnotebook for MacWorld January. Three and a half years ago, I pointed out the very rapid growth of storage per buck. I now have an iPod that is half the price, a tenth the weight and volume, and that plays video as predicted.


Baca Selengkapnya ....

Open versus Closed - code and networks

Posted by Unknown Jumat, 29 Juni 2007 0 komentar

I read two things this morning in praise of closed systems and fêting their future dominance, both by people who should know better. Bob Cringely praises Adobe's Flash, and predicts that AIR will take over the world because Flash can be made to run on cellphones. Clearly, this is wishful thinking on Adobe's part. There is a standard for creating user interfaces that has many orders of magnitude more developers than Flash, is installed on every computer and nearly every cellphone already, and is powerful enough that even Steve Jobs didn't dare to leave it off the iPhone, and that's HTML.

Cringely says:

Once you own the interface to every mobile device you can make those devices talk more easily to your networked applications than possibly to those from Apple, Microsoft, or Sun. As we move toward a fully mobile Internet, compliance with mobile APIs will be more important than what operating system is running on the server, which is why I believe Adobe is putting so much effort behind AIR and Flex.

"Owning" interfaces is not something that you can do when there is an existing interface that is simple, powerful and deployed on every device imaginable already. That would be HTTP - Cringely's piece starts by saying how HTML has made it beyond ubiquity to invisibility, but HTTP is so invisible he doesn't even notice that it's there (let alone TCP or UDP).

Marc Andreesson also has a good underlying point about the Valley's short attention span with regard to technologies, but he too ends up praising a closed application model, in this case Facebook's. They provide access to their users under sufferance, and clearly can't provide access to users of otehr social networking sites. For Marc to back a closed system like this when he has built his career on open ones is odd to me. Kottke puts this well:

As it happens, we already have a platform on which anyone can communicate and collaborate with anyone else, individuals and companies can develop applications which can interoperate with one another through open and freely available tools, protocols, and interfaces. It's called the internet and it's more compelling than AOL was in 1994 and Facebook in 2007. Eventually, someone will come along and turn Facebook inside-out, so that instead of custom applications running on a platform in a walled garden, applications run on the internet, out in the open, and people can tie their social network into it if they want, with privacy controls, access levels, and alter-egos galore.

Dave Winer agrees it is time to do this:

Eventually, soon I think, we'll see an explosive unbundling of the services that make up social networks. What was centralized in the form of Facebook, Linked-in, even YouTube, is going to blow up and reconstitute itself.

The thing is , pace Andreesson, we have been working on building a consensus to express these connections in an open way for a few years now. We already have a way to express social networks and personal information online. We have hCard for expressing contact information and authorship, and we have XFN to express social connection. Twitter, Dave's experimental platform, already supports this. Lets continue to spread it further.


Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of apk zenonia 5.