Article delegate-en/4219 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] Delegate's FTP/HTTP Gateway HTTP Header
19 Nov 2008 19:15:15 GMT "Tan Ng" <ppmiabdyi-zyxzidheymhr.ml@ml.delegate.org>


Hi All,

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"
HTTPCONF="add-head:X-Robots-Tag:noarchive"
HTTPCONF="add-head:X-Robots-Tag:nosnippet"

When I traverse the FTP server directory via Delegate FTP/HTTP Gateway, I
can see the specified HTTP response headers on the browser.  Here is an
example.

HTTP/1.1 200 OK
Date: Wed, 19 Nov 2008 19:05:59 GMT
Server: DeleGate/9.8.2-pre36
DeleGate-Ver: 9.8.2-pre36 (delay=0)
MIME-Version: 1.0
Content-Type: image/gif
Content-Length: 100
Last-Modified: Wed, 28 May 2008 15:14:20 GMT
Connection: keep-alive, timeout=60, maxreq=60
X-Robots-Tag: noarchive
X-Robots-Tag: nosnippet
Cache-Control: private

However, when I download a specific file via Delegate FTP/HTTP Gateway, I
don't see the specified HTTP response header on the browser.

HTTP/1.1 200 OK
Date: Wed, 19 Nov 2008 19:10:49 GMT
Server: ETL-DeleGate/9.8.2-pre36 (as a FTP/HTTP gateway)
DeleGate-Ver: 9.8.2-pre36 (delay=2)
MIME-Version: 1.0
Content-Type: text/html
Connection: close
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 3186

Can anyone help to add the specific HTTP response reader to all the
responses back to browser?

Thanks,
Thanh


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