Re: HTTP Headers

2007-04-13 Thread Dig

Jerome Louvel contact at noelios.com writes:

 Hi Dig,
 
 Complete caching support is not available in the API yet. It is planned for
 a future release, see: http://restlet.tigris.org/issues/show_bug.cgi?id=25
 
 You are touching a sensitive point. I have relaxed the usage of the standard
 HTTP headers that are not yet supported in the API. You will still get a
 message in the logs (INFO level instead of WARNING), but it will work.
 Checked in SVN.
 
 Also, I have entered a new issue to keep track of all unsupported standard
 HTTP headers:
 http://restlet.tigris.org/issues/show_bug.cgi?id=282
 
 Best regards,
 Jerome  


Hi Jerome,

Thanks for the response - very helpful. I'll implement these 
headers once I upgrade.

Best regards,

Dig.



HTTP Headers

2007-04-04 Thread Dig

Hi,

I would like to set the following HTTP headers in the response:

Cache-Control: no-cache
Pragma: no-cache
Expires: 0

I can't set this directly as Restlet prevents me from setting standard HTTP
headers. I've read the FAQ and the documentation and I understand that instead
of trying to set standard HTTP headers directly I should be using the API, which
is fine.

However, I can't seem to find any reference to the headers above apart from the
constants in HttpConstants.

What should I be doing?

Many thanks in advance,

Dig.