users@jersey.java.net

Re: [Jersey] Location Header

From: Martin Probst <mail_at_martin-probst.com>
Date: Mon, 12 May 2008 09:46:46 +0200

> I'd like to be able to set the Location header to /products/{id}
> using a
> relative URI, even inside a different path (/user in this case). Do
> you
> think it makes sense or am I willing to do something inadequate?

What do you want to have returned to the browser?

If you're asking for a relative Location header in the actual
response, e.g.

Location: /products/12

This is illegal wrt the HTTP standard, Location headers must always be
absolute.

Regards,
Martin