pipe form output as arguments to cgi program(?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxx]
Sent: Wednesday, December 13, 2006 3:52 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


< 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux