Hi Jim, > I was trying to find how to manipulate http headers (standard or > extension) from a Resource class. I can't seem to get access to the > headers through the Response class.
http://www.restlet.org/documentation/1.0/faq#01 But the mechanism described here only allows you to set non-standard headers. Restlet attempts to have a means in the API for setting any standard headers like Location. You probably want Response.redirectOther(String targetUri) for the use case you describe. From the Javadoc (which is copied from RFC 2616, HTTP/1.1): "Redirects the client to a different URI that SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource." So this sets the 303 status code and the target, which is probably what you want for a Post/Redirect/Get pattern. - Rob

