Re: HEAD not well supported?

2007-10-10 Thread Chuck Hinson
On 10/10/07, Sean Landis <[EMAIL PROTECTED]> wrote: [...] > We have about a dozen people writing web services using Restlet. Although > head is confusing, I'd say we experience more confusion over the fact > that GET is a 'special case'. That is, there's no get(), but instead you > must use getRepr

Re: Restlet site code

2007-10-10 Thread Patson
Yes, tried on both IE and netscape...both had the same issue. The problem is the localhost server should not send the 401 response again after its authenticated at the first GET

Re: Determining preferred media type from browsers

2007-10-10 Thread Sean Landis
Justin Makeig troove.net> writes: > > It all depends on the Accept header that the client sends. For, > example Firefox (2.0.0.7) sends the Accept header: text/ > xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ > plain;q=0.8,image/png,*/*;q=0.5. This can be interpreted as >

Restlet site code

2007-10-10 Thread Kyrre Kristiansen
Hello. Just an unimportant question... I seem to remember the code for the restlet site being available in the documentation, but now I can't find it. Has it been removed? Kyrre Kristiansen _

Re: Determining preferred media type from browsers

2007-10-10 Thread Justin Makeig
It all depends on the Accept header that the client sends. For, example Firefox (2.0.0.7) sends the Accept header: text/ xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5. This can be interpreted as text/xml: 100% application/xml: 100% application

Determining preferred media type from browsers

2007-10-10 Thread Sean Landis
When a request from a browser to a Restlet application is processed, the request will have many accepted media types. It appears that Restlet scores the accepted media types to prefer APPLICATION_XML and TEXT_XML over TEXT_HTML. This makes it difficult to have a resource support TEXT_HTML and APP

Re: HEAD not well supported?

2007-10-10 Thread Sean Landis
Erik Hetzner ucop.edu> writes: > > At Mon, 8 Oct 2007 17:35:00 + (UTC), > Sean Landis gmail.com> wrote: [...deleted...] > > I'd say that Restlet meets the requirements of the spec and that's > > good. Although I still think it would be better to leverage Uniform > > entirely and it seems

Re: Restful Login/Identifier

2007-10-10 Thread Marc Portier
somewhat tangential to this discussion: I just saw this blog: http://www.crummy.com/2007/10/08/0 pointing to: http://oauth.net/ -marc= JC wrote: I am trying to develop a Restful login system. Using a web service I want to identify a user based on their user name and password, but I am not sure

Re: Issue when using Guard for POST and GET requests

2007-10-10 Thread Thierry Boileau
Hi Patson, did you try with several clients such as IE, FireFox? best regards, Thierry Boileau On 10/10/07, Patson <[EMAIL PROTECTED]> wrote: > > Patson timesearchinc.com> writes: > > > > > Hi all. I have started using restlet since last month and am impressed > with > the > > simplicity it off

JSON represenation based on json-lib from http://json-lib.sourceforge.net/

2007-10-10 Thread Evgeny Shepelyuk
Hello! Could it be possible to remake JSON represenation to start using that library. IMHO that library seems more mature and feature-rich than current :)) And also make some changes to JsonRepresentation by providing constructor that allows creation directly from POJO. -- Best Reg