In message <_A3982@delegate-en.ML_> on 05/24/08(02:17:27)
you "NGU,THANH" <email@example.com> wrote:
|On my Delegate's HTTP gateway to FTP server, I am able to browse the
|directories and open text files. However, I am unable to open the
|binary files (e.g. Word, Powerpoint, etc) after I downloaded them using
|the browser. I notice the downloaded binary file size is much smaller
|than the actual size shown in the HTTP gateway page and FTP server.
|Here are some of the errors in the log.
|05/22 14:33:39.19  3+2/1: ## got SIGPIPE  in HTTP: Gatewaying
|05/22 14:33:39.19  3+2/1: FTP/HTTP DONE: GOT 30720 / 465 bytes
|05/22 14:33:39.19  3+2/1: HCKA: closed -- p:premature client
|EOF on gatewaying
|The actual size of the binary PowerPoint file is 465408 bytes, but the
|content-length only shows 465 bytes.
|Does anyone have experience the same problem? Is there any solution or
As the log says, your data is truncated because the client (your browser)
closed the TCP connection with DeleGate before it complete receiving the
response data. So the problem seems why your browser did it.
You can see the whole HTTP response from your DeleGate with a command
% delegated -Fdget http://your-delegate/your-file.ppt -h -o > xxx
% more xxx
HTTP/1.0 200 OK
Date: Sun, 25 May 2008 06:05:15 GMT
Server: ETL-DeleGate/9.8.2-pre36 (as a FTP/HTTP gateway)
DeleGate-Ver: 9.8.2-pre36 (delay=1)
...binary data of PPT...
A possible problem is that your browser does not accept "application/vnd.ms-powerpoint".
If it is the case, you can change it to "application/octet-stream" like this:
9 9 Yutaka Sato <firstname.lastname@example.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