Debian bug report logs - #1126 , boring messages ----------------------------------------------------------------------- Message sent to debian-devel@pixar.com: Subject: Bug#1126: /usr/sbin/cgiparse -form doesn't work Reply-To: rdr@tad.micro.umn.edu (Raul Miller), debian-bugs@pixar.com Resent-To: debian-devel@pixar.com Resent-From: rdr@tad.micro.umn.edu (Raul Miller) Resent-Sender: iwj10@cus.cam.ac.uk Resent-Date: Wed, 19 Jul 1995 23:48:02 GMT Resent-Message-ID: X-Debian-PR-Package: cern-httpd X-Debian-PR-Keywords: Received: via spool for debian-bugs; Wed, 19 Jul 1995 23:48:02 GMT Received: with rfc822 via encapsulated-mail id 071923372921970; Wed, 19 Jul 1995 23:37:29 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0sYif2-000AD9C; Wed, 19 Jul 95 16:36 PDT Received: from gopher.legislate.com ([192.77.155.4]) by pixar.com with SMTP id AA14437 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 19 Jul 1995 16:34:39 -0700 Received: by gopher.legislate.com id (Debian /\oo/\ Smail3.1.29.1 #29.33); Wed, 19 Jul 95 19:39 GMT Message-Id: Date: Wed, 19 Jul 95 19:39 GMT From: rdr@tad.micro.umn.edu (Raul Miller) To: debian-bugs@pixar.com Cc: Ted Hajek Package: cern-httpd version: 3.0 package_revision: 3 According to the documentation located at http://www.w3.org/hypertext/WWW/Daemon/User/CGI/cgiparse.html, cgiparse has semantics which include: cgiparse -form Parse QUERY_STRING as form request. Outputs a string which, when eval'ed by Bourne shell, will set shell variables beginning with FORM_ appended with field name. Field values are the contents of the variables. and cgiparse -init If QUERY_STRING is not defined, read stdin and output a string that when eval'd by Bourne shell it will set QUERY_STRING to its correct value. This can be used when the same script is used with both GET and POST method. Typical use in the beginning of Bourne shell script: eval `cgiparse -init` After this command the QUERY_STRING environment variable will be set regardless of whether GET or POST method was used. Therefore cgiparse may be called multiple times in the same script (otherwise with POST it could only be called once because after that the stdin would be already read, and the next cgiparse would hang). However, working with an example value, cgiparse fails: $ cat /tmp/cgi-init # generated by cgiparse -init QUERY_STRING='what-to-do=read&who-to-do-it-with=Aleks&what-to-wear=Jeans&what-to-wear=Sweatshirt&what-to-wear=Socks'; export QUERY_STRING $ eval `cat /tmp/cgi-init` $ echo $QUERY_STRING what-to-do=read&who-to-do-it-with=Aleks&what-to-wear=Jeans&what-to-wear=Sweatshirt&what-to-wear=Socks $ /usr/sbin/cgiparse -form $ eval `cat /tmp/cgi-init | sed -e s/-/_/g` $ /usr/sbin/cgiparse -form FORM_what_to_do='read'; FORM_who_to_do_it_with='Aleks'; FORM_what_to_wear='Jeans, Sweatshirt, Socks' $ exit Personally, I don't care cgiparse deals with the hyphens, but they ought to be dealt with somehow. -- Raul Miller ----------------------------------------------------------------------- Message sent: From: iwj10@thor.cam.ac.uk (Ian Jackson) To: rdr@tad.micro.umn.edu (Raul Miller) Subject: Bug#1126: Acknowledgement (was: /usr/sbin/cgiparse -form doesn't work) In-Reply-To: References: Thank you for the problem report you have sent regarding Debian GNU/Linux. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers' mailing list for their attention; they will reply in due course. If you wish to submit further information on your problem, please send it to debian-bugs@pixar.com, but please ensure that the Subject line of your message starts with "Bug#1126" or "Re: Bug#1126" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs) ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov