www.webdeveloper.com
Results 1 to 5 of 5

Thread: Where is Apache post data intermediate storage?

  1. #1
    Join Date
    Nov 2002
    Location
    Flint, Michigan, USA
    Posts
    590

    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?

  2. #2
    Join Date
    Dec 2011
    Posts
    2
    hmmmmmm Nice Article....

  3. #3
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    Quote Originally Posted by jalarie View Post
    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

    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.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  4. #4
    Join Date
    Nov 2002
    Location
    Flint, Michigan, USA
    Posts
    590
    Quote Originally Posted by svidgen View Post
    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

    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.

    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!

  5. #5
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    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.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles