[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtm-perl
Subject:    Re: [gtm-perl] runtime.c --- done?
From:       Emiliano <emile () iris-advies ! com>
Date:       2001-01-12 23:13:50
[Download RAW message or body]

Jim Self wrote:

> >I'm working from the CGI standard. The things I need to know are fixed.
> >I can see the usefulness of listing the environment in a general case but
> >while writing CGIs I'd be working with what the spec says (which is fixed) or
> >what a specific server provides (which is also fixed).
> 
> Are you working with the documents referenced from the Apache manual on CGI
> or something else?

I've been using http://cgi-spec.golux.com/. The pages in the apache
manual
extend the 'spec' a bit, but these extensions are of course
server-specific.

> Part of what I was trying to say above is that the CGI
> parameters are NOT entirely fixed; there is variability in the names that
> begin with HTTP_.

I think these will be Apache specific. Not a problem perse, since Apache
has a pretty decent market share. But Zeus, or AolServer, or the
multitude
of other webservers out there may choose not to implement these.

I'm not saying it wouldn't be useful to be able to discover the
environment
variables, and indeed in Perl you can. You can in shell, too, albeit in
a more
complex way (using env and grepping, awking or whatever). I'm just
saying that
so far, I've either been able to work with the known variables that a
'standard'
CGI environment offers, or have made use of known variables for a
particular
server. I don't know of Apache providing variables conditionally.

Emile

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic