Hi Charles

At 16:36 03.07.2002, you wrote:
> >>> My understanding is cgi scripts recieving data like the above
>example
> >>> via a GET or HEAD request are supposed to refer to the QUERY_STRING
> >>> variable, which should be properly exported by sh-httpd.
> >>
> >>- or maybe this explains it?
> >
> > I does indeed, one can use QUERY_STRING instead of $1....
> >
> > I believe the easiest way (for the user) is to implement all the
>variables
> > in sh-hddpd so it will provide
> > your parameters as
> >
> > ${SelDAY}
> > ${SUNUP}
> > ...
> >
> > this is quite easy to do in sh-httpd, I will start with it as soon as
>I get
> > the patched version for POST.
>
>If this is how apache, and other web servers work, I have no problem
>with making sh-httpd follow suit.  I think, however, that the behavior
>you describe is not part of the normal CGI interface, so any scripts
>depending on the above functionality will only work on sh-httpd, and
>would not work on something like thttpd, apache, boa, &c...

The CGI source http://hoohoo.ncsa.uiuc.edu/cgi/ you mentioned yesterday is 
the actual reference. There is no other format defined but as you find in 
the examples section there are libraries ready to provide access to the 
parameters. Actually it's been quite a while since I coded CGI's in shell. 
Perl for example has a multitude of CGI interfaces available which take the 
burden out of decoding the CGI stream.

>NOTE:  Parsing of the QUERY_STRING for form data can be easily done by a
>few shell routines in a cgi.include file (or similar)...it doesn't have
>to be done by the web-server for convinence.

Correct, but it would be a very central location and easy to maintain.

>Should we maybe troll the leaf-user list for someone with extensive
>web/cgi design experience?  I don't have anything that indicates form
>data should be pre-processed by the web-server and provided as command
>line arguments, but I'm a cgi neophyte.

Sounds sensible

take care

Erich


THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024  8D8A B7D4 FF9D 05B8 0A16



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to