Article delegate-en <_A3984@delegate-en.ML_>
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[delegate-en/3984] [Reference:<_A3982@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: HTTP Gateway to FTP server - Unable to Open Binary Files
25 May 2008 06:22:19 GMT (Yutaka Sato)
The DeleGate Project


In message <_A3982@delegate-en.ML_> on 05/24/08(02:17:27)
you "NGU,THANH" <> 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 [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
 |05/22 14:33:39.19 [4684] 3+2/1: HCKA:[1] 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
like this:

  % 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)
  MIME-Version: 1.0
  Content-Type: application/
  Content-Length: 3249152

  ...binary data of PPT...

A possible problem is that your browser does not accept "application/".
If it is the case, you can change it to "application/octet-stream" like this:


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

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