[Xitami] Developer Issue: POST STDIN vs CGI read

RPO rolinger1 at hotmail.com
Mon Aug 29 01:13:59 CEST 2005


I am running Xitami on W2k machine.  How does Xitami handle POST data?  I am trying to read in the raw POST data from a file upload form, and while reading in the raw data my script writes to a temp file the progress of that upload.  Every 8k of POST data the temp file gets updated.  In the script the temp file gets created before the POST STDIN occurs. However, with Xitami the temp file doesn't get created until AFTER the entire raw STDIN has been processed, thus preventing the use of any status or progess data.  

Is Xitami server somehow holding onto the raw POST data, waiting for it to be completely read in, before handing it off to the CGI compiler or before handing it off to the perl script?  This same script works on Linux/apache the way its intended to, but on Windows/Xitami the temp file doesn't get written til after the raw data is completely read in.

This is a serious issue because it is inteferring with the ability to create a Progress Bar that shows users the status of a multi-file upload.  With Perl, the only way to create a Progress Bar is to write updates to a temp file (bytesIN of totalBytes) while the files are being uploaded, and a popup window refreshes itself and processes the contents of that temp file to be able to provide the visual progress of the file upload.  If Xitami is somehow interferring with the raw read of POST data, then there is no effective way of creating that temp file.

-Russel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.imatix.org/pipermail/xitami/attachments/20050828/eca7a5e1/attachment.htm


More information about the Xitami mailing list