Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 33303 invoked from network); 13 Dec 2006 20:52:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 20:52:30 -0000 Received: (qmail 40077 invoked by uid 500); 13 Dec 2006 20:52:23 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 40064 invoked by uid 500); 13 Dec 2006 20:52:23 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 39958 invoked by uid 99); 13 Dec 2006 20:52:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 12:52:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of spc@conman.org designates 66.252.226.50 as permitted sender) Received: from [66.252.226.50] (HELO linus.area51.conman.org) (66.252.226.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 12:52:11 -0800 Received: by linus.area51.conman.org (Postfix, from userid 100) id EA93B73029; Wed, 13 Dec 2006 15:51:43 -0500 (EST) Date: Wed, 13 Dec 2006 15:51:43 -0500 From: Sean Conner To: users@httpd.apache.org Message-ID: <20061213205143.GD10181@linus.groomlake.area51> References: <755196298.221671166033993805.JavaMail.osg@osgjas01.cns.ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <755196298.221671166033993805.JavaMail.osg@osgjas01.cns.ufl.edu> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] new user / cgi program ignoring
arguments It was thus said that the Great michaeljay once stated: > I have httpd 2.2 / windows xp > > My cgi program (ansi c) is failing to echo arguments from an xhtml > form. Thinking this is common. Can anyone point to common > configuration errors which would result in something like this. > The resulting web page says: "(null)" > > * the form is sending correctly using the mailto: method. > * the program works from the command line > * the form is triggering hardwired output from the program. > * the program will echo argv[0] (program path) in the web output > but not argv[1] which should be the name=value pairs Apache doesn't send the name/value pairs on the comment line, but either through the environment variable QUERY_STRING (for a GET method) or as stdin (for the POST method). Either way, you'll need to parse the input (QUERY_STRING or stdin) to break the name/value pairs apart. -spc (I have a library for that sort of thing---works well under Unix, and an older version *was* successfully ported to Windows, but that was about seven years ago ... ) --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org