Where is Apache post data intermediate storage?
I'm just learning Apache. I have a form using "method='post'" and I can easily retrieve the form values in Perl or PHP. I'd like to play with that information on the server (my own Windows machine) directly just to learn. I expect that it must be stored in a temp file before being fed to my Perl/PHP program; how do I find that stored data?
I don't think you'll find it in a temp file. You can play with the raw POST data in PHP using http://php.net/manual/en/reserved.va...awpostdata.php
Originally Posted by jalarie
And if you're using the CGI module in perl: http://stackoverflow.com/questions/9...dy-with-cgi-pm
... And if not, read from STDIN, of course.
ADDENDUM: My memory is a little fuzzy, but I would think you could also read the raw POST data from STDIN in PHP too.
Thank you. I already found it in Perl and PHP; I'm being wierd trying to find it outside of those.
Originally Posted by svidgen
My youngest brother wants to take orders for products over the web and process them in Basic. He knows Basic and refuses to learn anything else, so I'm looking for a Basic solution. I haven't found the proper combination of "open" and "input" to pull the "post" data in Basic, and I haven't found a way to convince him to learn Perl or PHP.
While working on the Basic problem, I decided to try for a truly generalized solution that would work for any language. Believe it or not, I almost have it for DOS batch files! Unfortunately, "almost" isn't quite what I want. Yes, I'm wierd!
Ah. Sorry if I misunderstood.
I think it would work the same way though. A CGI app is basically fired up like a regular process for each matching HTTP request (edit). And, unless my memory has grown foggy, the headers and POST data are piped in through STDIN. Can't say offhand how you read from standard input in BASIC ... but, I'm pretty sure that's how you'd get what you need.
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)