Hello Michael, after reading the spec, SUCCESS_CREATED shows that the operation succeeds and allows you also to provide a representation with some information about the new resource, including "a list of resource characteristics and location(s) from which the user or user agent can choose the one most appropriate". I don't think it can be meant as a redirection. I think also that the redirecRef is only used when the status of the response is a redirection status (3xx). The main explanation for this design choice is that there are several redirection status, and no default one.
best regards, Thierry Boileau On 6/28/07, Michael Vogel <[EMAIL PROTECTED]> wrote:
Hello, I'm new to using restlets and have been experimenting with simple test pages to make sure i understand how to use it (and so that i can write some examples to help my coworkers learn it). I wrote a simple form submission test that works, except that the redirection after returning SUCCESS_CREATED doesn't happen. I am under the impression that setting getResponse().setRedirectRef(<some URL>); sets the location header and redirects the browser to whatever URL is specified. If i send the state REDIRECTION_SEE_OTHER, it redirects correctly. From the HTTP spec, it appears that using REDIRECTION_SEE_OTHER to redirect the client to a view of the created item after a post is acceptable, so I'm going with that for now, but I thought SUCCESS_CREATED was supposed to do that also. Am I incorrect in expecting it to redirect on SUCCESS_CREATED? thanks for your time, Michael

