Article delegate-en/2990 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]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] HTTP filtering and Windows
29 Jun 2005 12:56:44 GMT "Lorant Horvath" <pvyfqbdyi-a3dey5jxvelr.ml@ml.delegate.org>


Dear All,

I'm playing with DeleGate/9.0.2 on Windows 2000 trying to use CFI but it
does not seem to work, Delegate sets Content-Length: 0 and the http body
contains nothing. Could somebody give some help? Thanks in advance!

Regards,
Lorant

My cfi file contains:
#!cfi
Content-Type: text/html
Body-Filter: C:\cygwin\bin\sed.exe "s/script/deleted"

My config file:

ADMIN=test@test..
DGROOT="X:\scripting\delegate"
-P1999
SERVER=http
-vd
-f
LOGDIR="X:\scripting\delegate"
LOGFILE="dg.log"
FTOCL=filter.cfi

Here is the log file:
06/29 14:45:26.76 [8916] 1+1: Content-Length: 0 -> 3668 (3987 - 319)
06/29 14:45:26.76 [8760] 0+0: ////////////////////////////
#!cfi^M
Content-Type: text/html^M
Body-Filter: C:\cygwin\bin\sed.exe "s/script/deleted"^M

06/29 14:45:26.76 [8760] 0+0: ///////// MATCHED //////////
06/29 14:45:26.76 [8760] 0+0: TMPFILE(CFI-CONV) = (0)
X:\scripting\delegate/tmp/dg8760.2.1120049126
06/29 14:45:26.76 [8760] 0+0: >>>TMPFILE(CFI-CONV)>>>6137d0[0]
06/29 14:45:26.76 [8760] 0+0: TMPFILE(CFI-MESSAGE-BODY) = (1)
X:\scripting\delegate/tmp/dg8760.3.1120049126
06/29 14:45:26.76 [8760] 0+0: >>>TMPFILE(CFI-MESSAGE-BODY)>>>6137f0[1]
06/29 14:45:26.76 [8760] 0+0: systemFilter[with buffered input = 3418]:
C:\cygwin\bin\sed.exe "s/script/deleted"
(WIN) 45:26 [8760] spawn() = 576 [8964], children(alive=1,total=1)
(WIN) 45:26 [8760] spawn() = 576 [8964], children(alive=1,total=1)
06/29 14:45:26.87 [8964] 0+0: ### [4] C:\WINNT\DeleGate 0
06/29 14:45:26.87 [8964] 0+0: ### [9] C:\Program Files\OpenVPN\bin\DeleGate
0
06/29 14:45:26.87 [8964] 0+0: ### [10] C:\php-4.3.3-Win32\DeleGate 0
06/29 14:45:26.87 [8964] 0+0: ### [12] C:\cygwin\bin\DeleGate 0
06/29 14:45:26.90 [8760] 0+0: ## wait the filter finish reading enviroment
06/29 14:45:27.01 [8760] 0+0: simple_relayf [27 -> 5] = 3418
06/29 14:45:27.01 [8916] 1+1: HTTP RESPONSE FLUSH: DO (HCKA=0)
06/29 14:45:27.01 [8916] 1+1: HTTP transmitted:
310head+3668/0body=>0txt+0bin->3668/3668, 12i/1o/0f/0.3
06/29 14:45:27.01 [8916] 1+1:
[Cookie:][Set-Cookie:PREF=ID=01b1d3b9c05a859b:LD=hu:TM=1120049227:LM=1120049
227:S=9NpM_VMX2FjsTOSb; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/;
domain=.google.co.hu][Cache-Control:private]
06/29 14:45:27.01 [8916] 1+1: No Last-Modified:
06/29 14:45:27.01 [8916] 1+1: relay_response()=-10005, cache=0, httpStat=W
DontTruncate=0
06/29 14:45:27.01 [8760] 0+0: simple_relay [27 -> 5] = (0 -> 0) / 0
(WIN) 45:27 [8760] wait(0) = ...
(WIN) 45:27 [8760] wait(0) = ...
(WIN) 45:27 [8760] wait3() = 576 [8964], status=1, children(alive=0,total=1)
(WIN) 45:27 [8760] wait3() = 576 [8964], status=1, children(alive=0,total=1)
(WIN) 45:27 [8760] wait(0) = 576
(WIN) 45:27 [8760] wait(0) = 576
06/29 14:45:27.01 [8760] 0+0: Content-Length: 3668 -> 0 (389 - 389)
06/29 14:45:27.01 [8916] 1+1: #HT11 putServ(28/30) www.google.co.hu:80
06/29 14:45:27.01 [8916] 1+1: HCKA:[0] closed -- x:external filter
06/29 14:45:27.01 [8916] 1+1:
dirfopen(\scripting\delegate/act/clients/20/127.0.0.1..localhost,r+): 6137f0
[5]
06/29 14:45:27.01 [8916] 1+1: disconnected [5] -@[127.0.0.1]localhost:3345
(1.172s)(0)
(WIN) 45:27 [8916] wait3() = 488 [8760], status=0, children(alive=1,total=2)
06/29 14:45:27.01 [8916] 1+1: CFI process [488] done (1/1 AFT-0)
06/29 14:45:27.01 [8916] 1+1: StickyServer: start accept()
(WIN) 45:27 [8736] select() = -1 [errno=(22 / 10038)]
(WIN) 45:27 [8736] #### ERROR: select() applied to non-SOCKET handle
06/29 14:45:27.25 [8736] 0+0: simple_relay [27 -> 29] = (386 -> 386) / 1


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