Article delegate-en/116 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] env vars
24 Sep 1998 23:40:39 GMT pd4aabdyi-7pkjwoazwjfr.ml@ml.delegate.org (Oliver Hertel)
private


Hiho!

On 25.09.98 you wrote:

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

Ah.

> I recommend you from the simplest and direct testing like this.
>
> (1) prepair /tmp/env.cgi including like this with mode 755
> #!/bin/sh
>
> echo ""
> env
[...]

This works.

But THIS does not work:

----start (script)----
delegated -P8089 -v ADMIN=root@sarah.. FTOCL=cfi.conf
----end----

----cfi.conf----
#!cfi

---
#
# input: any html file
# output: html with minimal size, converted maps/frames etc.
#
Content-Type: text/html
Filter: test.pl
---
----end----

----test.pl----
#!/usr/bin/perl

$agent=$ENV{'HTTP_USER_AGENT'};
$path=$ENV{'PATH'};
print 'agent: ['.$agent."]\n";
print 'path: ['.$path."]\n";
----end----

test.pl gives back the path, but *agent* is empty. Why? The same
with other 'http variables' I checked...

Ciao, Oliver
-- 
http://www.tu-darmstadt.de/~st001183/

MovieTAG: Drivin' Miss Daisy Crazy (????)
          Meet the girl mum warned you about

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