On Tue, Dec 20,
inscribed on the eternal
scroll:
> Whats a sure fire way to tell I am executed from either httpd or
> command line?
You can't, really, since anything you care to test could equally be
faked from the command line.
> At the moment, I decide on HTTP_USER_AGENT having a
> value to say I am from httpd.
There's no absolute mandate to set that to a non-null value, so I'd
have to advise against that...
Seems to me that the closest specified item to what you're
asking for would be the GATEWAY_INTERFACE :
http://cgi-spec.golux.com/draft-coar...ean.html#6.1.4
> This needs to work whatever the platform / server.
Indeed. If you'd suggested otherwise, you'd have found yourself
contradicted
GATEWAY_INTERFACE -is- a bona fide feature of the CGI specification,
right from way back:
http://hoohoo.ncsa.uiuc.edu/cgi/env.html
Any so-called CGI interface which fails to provide it would be
seriously deficient. Of course, it could be faked from the command
line, as I mentioned before: but anyone who does that gets,
presumably, just what they asked for.
--
Procrastination gives you something to look forward
to putting off tomorrow. -spotted on ahbou