[Helma-user] Writing HTTP Response Headers

Stefan Rinner rist at mac.com
Tue Jan 16 11:37:32 CET 2007


On Jan 16, 2007, at 11:22 AM, Anton Pirker wrote:

> Hi List!
>
> I am writing a little HTTP-Proxy in Helma and now i want to pass
> Cookie-Information from the Server to the Client.
> Helmas res.setCookie() does not support all cookie-fields (like Max- 
> Age,
> Port, commentURL, ...) so i thought about directly writing the
> "Set-Cookie"-Header i got from the server to the http response  
> headers.
> How can i do this in Helma? I did not find anything about it in the
> Helma-Documentation.

setting arbitrary headers works like this:

	res.servletResponse.setHeader( "Content-Disposition",  
( this.mimetype.startsWith( "image/" )? "" : "attachment;" ) +  
"filename=\"" + this.name + "\"" );

- stefan


More information about the Helma-user mailing list