Article delegate-en/115 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: env vars
24 Sep 1998 20:14:04 GMT (Yutaka Sato 佐藤豊)

In message <_A108@delegate-en.ML_> on 09/24/98(19:37:00)
you (Oliver Hertel) wrote:
 |How do I correctly export the environment variables?
 |I start a perl script as cgi. That script must know, which client
 |software is used... I try this via $client=ENV{'HTTP_USER_AGENT'};
 |But I seems, that there is something wring between by delegate
 |parameter CGIENV=HTTP_USER_AGENT and the perl script... I tried it
 |with several vars, non can be evaluated by my script.

"CGIENV" parameter controls passing of NON-CGI environment
variable like PATH or HOME.

I recommend you from the simplest and direct testing like this.

(1) prepair /tmp/env.cgi including like this with mode 755

echo ""

(2) execute DeleGate

   % delegatged -P9999 -v MOUNT="/* /tmp/*"

(3) simulate HTTP client by hand

   % telnet localhost 9999
   GET /env.cgi HTTP/1.0
   User-Agent: test

(4) access it from your HTTP client

Yutaka Sato <>   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_

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