tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@dedasys.com (David N. Welton)
Subject Re: response_ap.c
Date Thu, 07 Mar 2002 14:15:01 GMT
Ronnie Brunner <ronnie@netcetera.ch> writes:

> > 	    /* fixme
> > 		     *
> > 		     * use ap_table_set unless web::response -count key is > 1
> > 		     * then use set for the first and add for the others.
> > 		     */

> > WRT this one, what is supposed to be happening, exactly?  Can you
> > guys give me an example I can put in the test file (headers.test)
> > so that I know when it's running correctly?

> Code is fixed, no test written yet.  However, the test would be
> something like:

>     web::response -set Foo bar bla que
>     web::response -set Header1 foo
>     web::response -set Header1 bar
>     web::response -set Header2 Foo
>     web::response -lappend Header2 Bar
>     web::put "hi world"

> and the corresponding apache response needs to be:

>     HTTP/1.1 200 OK
>     Date: Wed, 06 Mar 2002 17:44:15 GMT
>     Server: Apache/1.3.12 (Unix)
>     Foo: bar
>     Foo: bla
>     Foo: que
>     Header1: bar
>     Header2: Foo
>     Header2: Bar
>     Generator: websh3.50 (c) Netcetera AG, http://netcetera.ch
>     Connection: close
>     Content-Type: text/html

>     hi world

Ok, although, yuck, this reveals a bug in Tcl's http package.  Namely,
that, using an array, it has troubles with multiples.  I'll see what I
can come up with.

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

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


Mime
View raw message