Article delegate-en/3216 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3215@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] SHTML / SSI / CGI on Windows
08 May 2006 11:53:52 GMT Martin Vetter <pnieabdyi-5sbstggbvwxr.ml@ml.delegate.org>


Hi Yutaka,

regarding:

> Now I'm extending SSI (SHTML) supports in DeleGate
> mainly for access counters.  As the basic feature of SHTML,
> I implemented #exec tag which can be used to replace CGI.
> ...
> The enclosed patch enables the SHTML #exec tag

and:

> Since both the CGI and FTOSV prcoesses are the
> children of the parent DeleGate process,
> the previous patch which suppress the
> waiting for a child if there are no children.
> It can be fixed as the enclosed patch.

could it be, that there still seem to be
problems when stacking filters on CGI or SSI output?

I'm testing the following setup:

    cat cgi.bat

    @echo Content-Type: text/plain
    @echo.
    @echo Hello World!

    cat filter.bat

    @perl -e "s@^Hello@DeleGate: Hello@" -p

    cat filter.cfi

    #!cfi
    Content-Type: text/plain
    Header-Filter: filter.bat
    Body-Filter: filter.bat

    cat ssi.shtml

    <!--#exec cmd="cgi.bat" -->



this is what I do, running DeleGate 9.2.0:

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/cgi-bin/* cgi:cgi.bat"

=> "curl http://localhost:8000/cgi-bin/cgi.pl" seems to work

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/cgi-bin/* cgi:cgi.bat" FTOCL=-cat

=> "curl http://localhost:8000/cgi-bin/cgi.pl" seems to work

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/cgi-bin/* cgi:cgi.bat" FTOCL=filter.bat

=> "curl http://localhost:8000/cgi-bin/cgi.pl" = empty

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/cgi-bin/* cgi:cgi.bat" FTOCL=filter.cfi

=> "curl http://localhost:8000/cgi-bin/cgi.pl" = empty

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/ssi/* file:*"

=> "curl http://localhost:8000/ssi/ssi.shtml" seems to work

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/ssi/* file:*" FTOCL=-cat

=> "curl http://localhost:8000/ssi/ssi.shtml" seems to work

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/ssi/* file:*" FTOCL=filter.bat

=> "curl http://localhost:8000/ssi/ssi.shtml" ... doesn't return

    dg9_2_0.exe DGROOT=tmp -f RELAY=no STLS=-FCL \
    ADMIN=dummy -P8000 SERVER=http -v \
    MOUNT="/ssi/* file:*" FTOCL=filter.cfi

=> "curl http://localhost:8000/ssi/ssi.shtml" = filter apparently not  
invoked



best regards and thanks for your help :o)

Martin Vetter


_____________________________
Martin Vetter (ilink)
mailto:pnieabdyi-5sbstggbvwxr.ml@ml.delegate.org


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V