[users@httpd] pipe form output as arguments to cgi program(?)
by Michaeljay other posts by this author
Dec 14 2006 6:38AM messages near this date
Re: [users@httpd] loadbalancing with Apache - Sticky Sessions
|
[users@httpd] Simple Rewrite Question
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:spc@[...].org]
Sent: Wednesday, December 13, 2006 3:52 PM
To: users@[...].org
Subject: Re: [users@httpd] new user / cgi program ignoring <form>
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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@[...].org
" from the digest: users-digest-unsubscribe@[...].org
For additional commands, e-mail: users-help@[...].org
< emjay! >
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@[...].org
" from the digest: users-digest-unsubscribe@[...].org
For additional commands, e-mail: users-help@httpd.apache.org
|