tcl-websh-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronnie Brunner <ronnie.brun...@netcetera.ch>
Subject Re: websh does not allow multiple Set-Cookie headers?
Date Sun, 11 Jan 2009 19:00:31 GMT
> Never mind, didn't realize you can specify multiple values to 
> web::response -set to generate multiple header lines for the same key.

In addition, you can add multiple cookies (headers) using the
-lappend option:

> websh
% web::response -set Set-Cookie Foo
Foo
% web::response -lappend Set-Cookie Bar
Foo Bar
% web::response -lappend Set-Cookie Zoo
Foo Bar Zoo
% web::put Test
Content-Type: text/html
Set-Cookie: Foo
Set-Cookie: Bar
Set-Cookie: Zoo
Generator: websh 3.6.0b4

Test%

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Z├╝rich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-user-help@tcl.apache.org


Mime
View raw message