So, I realize I'm a leech on this forum, but I'm not smart enough yet to help anyone, and asking is the only way to get there (when deductive reasoning fails).
If you've read my other whiny thread, I'm making a webserver, and I'd like to implement CGI. For GET requests, this is simple, and I even have some sample code to fall back on. However, if someone makes a POST request, things are more complex.
Background for those not familiar with HTTP: a CGI program can look for input data from either a GET request or a POST request, and their difference isn't important. GET looks for an environment variable containing the variable string (which it parses, not my job), but POST reads this string from stdin.
So, my server has to write to stdin. Does this mean that I can simply call ' cgi-interpreter.exe -f scriptToRun.cgi variablestring ' (I know that, minus the italicized part, that is how one accesses the program) or would I run the program and then just use system() to write the variable string, or would I actually use something like fprintf to write to the stdin stream? The latter two sound a little silly, but I'm the one who has no expertise here.
Anyone with some web knowledge, please help. Thanks to anyone who can help me.