Thank you, Sean. Surprised not more laughter. But supposedly
pre-standardization it was possible to pipe the data that way. So
let me rephrase: can we configure (for no particular immediate
purpose) Apache to receive input as command line arguments,
whether as one cell of the 2D array or pre-parsed into separate
indices--mj
-Original Message-
From: Sean Conner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 3:52 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] 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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
< emjay! >
-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]