Hi, In message <_A3985@delegate-en.ML_> on 05/25/08(15:53:52) I wrote: | | |05/22 14:33:39.19 [4684] 3+2/1: ## got SIGPIPE [1] in HTTP: Gatewaying | | |05/22 14:33:39.19 [4684] 3+2/1: FTP/HTTP DONE: GOT 30720 / 465 bytes | |DeleGate is recognizing the size of the response data from the FTP server as |465 bytes. This is forwarded to your browser in Content-Length thus your |browser receives only 465 bytes. | | | |The actual size of the binary PowerPoint file is 465408 bytes, but the | | |content-length only shows 465 bytes. | |The size should have been extracted from the 150 status response message |from the FTP server like this: | | 150 Openning BINARY mode data connection for xxx.ppt (465 bytes) | |You can peep the response message from the FTP server with an option of |DeleGate as this: | | CMAP=-tee-n:FSV:ftp | |If the size indicated by the FTP server is like above, the problem is the |matter of the FTP server. | |Another possible situation is that the 150 status response from the server |is very long, longer than 4096 bytes, and "465408" is just turncated after |"465" although it is not very likery. |Yet another possible situation is the function to scan the 150 response, |getFsize() in ftp.c, does not fit the non-standard format of the data size, |possibly ? like "465,408". I'm reminded yet another issue. DeleGate as a FTP/HTTP gateway uses the "SIZE" FTP command to see the size of the file to be downloaded, and if the FTP server responds to it with successful 213 status response, the value is used prior to the value in 150 status response. Also this negotiantion can be peeped with CMAP=-tee-n:FSV:ftp option as follows: 5 CWD xxx/yyy/zzz.ppt 24 550 /xxx/yyy/zzz.ppt: No such directory. 6 CWD xxx/yyy 25 250 CWD command successful. 7 SIZE zzz.ppt 26 000 00000X 8 RETR zzz.ppt 27 150 Opening BINARY mode data connection for tmp.ppt (636928 bytes). 05/25 17:53:50.23 [11447] 1+1: FTP/HTTP DONE: GOT 636928 / 636928 bytes 28 226 Transfer complete (636928 bytes) 05/25 17:53:50.44 [11447] 1+1: FTPGW 0.20(2) 226 Transfer complete (636928 bytes)^M 9 QUIT Cheers, Yutaka -- 9 9 Yutaka Sato <pfqcabdyi-mxhgu4yrqh3w.ml@delegate.org> http://delegate.org/y.sato/ ( ~ ) National Institute of Advanced Industrial Science and Technology _< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan Do the more with the less -- B. Fuller