tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronnie Brunner <ron...@netcetera.ch>
Subject Re: response_ap.c
Date Wed, 06 Mar 2002 17:50:18 GMT
> 	    /* 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

Ronnie
------------------------------------------------------------------------
Ronnie Brunner                               ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich    phone +41 1 247 79 79 Fax: +41 1 247 70 75

---------------------------------------------------------------------
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