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

[cgiapp] Replicating STDIN in POST method


Hello,

excuse me if this is a little offtopic, but I am sure that this
community help me with my problem.

There is a form that POSTs data (text values and files) to the 'debug' script.
I would like to do two things :
- firstly, I want to summarize params and values that are sent to script as
  param1=value1
  param2=value2
  and so on;
- secondly, I would like to have all STDIN (this is the way POST works)
  received by script written to logfile.

The problem is that when the program creates new CGI object ie. 
$q = new CGI;
the whole STDIN stream is consumed by CGI module and I am unable to 
read STDIN again to write it the logfile. 

Is there an easy way to "replicate" STDIN or solve my problem in different
way?

Best regards,
Wojciech Pietron

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.