Article delegate-en/4222 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:<_A4219@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Delegate's FTP/HTTP Gateway HTTP Header
20 Nov 2008 04:08:13 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A4219@delegate-en.ML_> on 11/20/08(04:15:05)
you "Tan Ng" <ppmiabdyi-5sbstgccaoxr.ml@ml.delegate.org> wrote:
 |I would like to know how to set a HTTP response header to the client using
 |Delegate's FTP/HTTP gateway.  Here is my Delegate setup.
 |
 |Real FTP Server (Oracle Content Services Server) <--->Delegate's FTP/HTTP
 |gateway (Dg9_8_2-pre36.exe) <----> Browser (Firefox)
 |
 |On the Delegate's configuration file, I have put use the HTTPCONF
 |configuration.  Here is an example:
 |
 |-P9090
 |SERVER=http
 |MOUNT="/* ftp://ocs.example.com:2700/* robots=ok
 |rcode={300|301|302|303|304|305|306|403|404} cache=no"
 |HTTPCONF="add-head:Cache-Control:private"

On Win32, HTTPCONF (and possiblly other parameters) does not applied
to some type of response data (including text/html) because those data
is processed in an filter process but HTTPCONF is not interpreted nor
inherited to the spawned filter process.
You can escape the problem by one of the following ways:

1) use DeleGate on Unix
2) chain one more DeleGate just to process HTTPCONF
3) use DeleGate/9.9.0-pre8 in which I added inheritance of HTTPCONF to a
   filter process (ftp://ftp.delegate.org/pub/DeleGate/tmp/bin-latest9/)

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@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

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