Re: HEAD not well supported?

2007-10-03 Thread Sean Landis
So is HEAD too obscure to garner any interest? Sean

Re: HEAD not well supported?

2007-10-03 Thread Sean Landis
John D. Mitchell jdmitchell at gmail.com writes: On 10/3/07, Sean Landis sean.landis at gmail.com wrote: So is HEAD too obscure to garner any interest? I think it's probably a good default to have allowHead == true and default to having handleHead() call handleGet() but head should be

Re: HEAD not well supported?

2007-10-03 Thread Adam Taft
Sean, I agree that HEAD should be supported. Just for the sake of discussion, however, I personally don't find HEAD all that interesting in comparison with Conditional GETs. I mean, when does the client ever just want to see if a resource has changed (or exists) without actually retrieving

Re: HEAD not well supported?

2007-10-03 Thread Rob Heittman
The main reason I've used it is to fetch content-length and make any necessary provisions (check storage space, warn user, etc.) on the client side before fetching the representation. In this case you definitely don't want the whole GET response coming at ya. - Original Message -

Re: Restful Login/Identifier

2007-10-03 Thread Adam Taft
JC wrote: I am trying to develop a Restful login system. I have never found a form or url based authentication system that felt anywhere near as good (or even as RESTful) as using Basic Authentication over SSL. First of all, I believe people need to get over this concept of logging in.

Re: HEAD not well supported?

2007-10-03 Thread Adam Taft
Rob Heittman wrote: The main reason I've used it is to fetch content-length and make any necessary provisions (check storage space, warn user, etc.) on the client side before fetching the representation. In this case you definitely don't want the whole GET response coming at ya. Ya, OK.

Re: Restful Login/Identifier

2007-10-03 Thread Jeff Walter
Heh, good point Adam. I'm definitely going to start telling my clients they just need to get over this whole silly logging in thing... ;-) On 10/3/07, Adam Taft [EMAIL PROTECTED] wrote: JC wrote: I am trying to develop a Restful login system. I have never found a form or url based

Re: Restful Login/Identifier

2007-10-03 Thread Adam Taft
I know you're teasing, so I won't be long... but just to be clear, when I say people should get over this concept of logging in, I mean us developers, not the end users. The user agent, of course, still prompts the user for credentials when it's appropriate to do so. The login process, as

Re: HEAD not well supported?

2007-10-03 Thread Erik Hetzner
At Mon, 1 Oct 2007 19:28:09 + (UTC), Sean Landis [EMAIL PROTECTED] wrote: I was implementing HEAD on a resource and couldn't figure out how to do it so I looked at the source for Resource.handleHead() and was surprised to see it calls handleGet(). My understanding of HEAD is that it

Re: HEAD not well supported?

2007-10-03 Thread Sean Landis
Erik Hetzner erik.hetzner at ucop.edu writes: I don’t understand what the issue is here? Can you not override handleHead? Yes you could but there's already a programming model for dealing with HTTP methods. One could argue handle*() methods could be final for example. Why exclude HEAD from

Re: HEAD not well supported?

2007-10-03 Thread Sean Landis
Erik Hetzner erik.hetzner at ucop.edu writes: Are you saying there's some place in Restlet where the entity is striped out in the case of HEAD? You might be right, although I didn't see it. Regardless, that makes unreasonable assumptions about the intent for HEAD. I don’t know; it just

Re: Restful Login/Identifier

2007-10-03 Thread Michael Terrington
Adam Taft wrote: The user agent, of course, still prompts the user for credentials when it's appropriate to do so. The login process, as the end user perceives it, still happens. It's just all about thinking in stateless RESTful terms, which is it seems hard for some (many? most??) web

Re: HEAD not well supported?

2007-10-03 Thread Aron Roberts
At 11:37 PM + 10/3/07, Sean Landis wrote: Here's an interesting follow-up. I have a resource that only implements GET and returns Ok. As the code implies, a HEAD request will do just like GET. When I run: curl --request head my-url It blocks until timeout and then prints: curl: (18)

Re: HEAD not well supported?

2007-10-03 Thread Adam Taft
Aron Roberts wrote: The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. Would this also imply that the correct HTTP Status code to be returned from a HEAD request should be 204, corresponding in the Restlet framework to something

Re: Facelets

2007-10-03 Thread Michael Terrington
Hi Chuck, I've ported Facelets to Restlets (removed the JSF dependencies). You can get it here: http://trac.sarugo.org/xtc Regards, Michael. Chuck Hinson wrote: Has anyone tried to do anything with Facelets in Restlets. Is it even possible? --Chuck

Thread-safety in Guard

2007-10-03 Thread Tim Peierls
There is a serious thread-safety problem in org.restlet.Guard (Restlet 1.0.5). The secrets field is lazily initialized without proper synchronization and the TreeMap used to initialize it is not thread-safehttp://java.sun.com/javase/6/docs/api/java/util/TreeMap.html. The simplest fix would be to

[DAISY] mails on [EMAIL PROTECTED]

2007-10-03 Thread Marc Portier
Hi all, some explanation: those subscribed to [EMAIL PROTECTED] will have seen a bulk of mails prefixed with [DAISY] passing by recently. These emails communicate ongoing changes to the documentation, we've decided now to direct those to the commit list, this can be changed later if

Re: HEAD not well supported?

2007-10-03 Thread Erik Hetzner
At Wed, 3 Oct 2007 19:39:10 -0700, Aron Roberts [EMAIL PROTECTED] wrote: In the message Re: HEAD not well supported?, dated 10/3/07, Adam Taft wrote: NO! The whole point of HEAD is to emulate a GET request, except without returning the message body. You don't need to send 204 because, by