(Fwd) REBOL Feedback: read-io system/ports/input on MS IIS [
[1/1] from: sags::apollo::lv at: 31-Oct-2006 19:48
Hi, Rebol users!
Could any body faced with similar problem - look bellow? If yes - are there
any solution available?
Thanks in advance, Janeks
------- Forwarded message follows ------- To:      #160 
 sags-apollo.lv From:         #160 
 feedback-rebol.com Date sent:       Mon,
30 Oct 2006 17:37:20 -0800 Subject:       
 REBOL Feedback: read-io system/ports/input  on MS IIS 
[#6aqd25350]
We seem to recall other users having a similar problem.
Check the rebol.org email list archive. Or, email a message there to see if
someone remembers it.
Let us know, and we'll add it to the CGI doc so other users can skip the
problem.
Thanks!
-REBOL Support
PS: If you reply, keep the same subject line and [#...].
---------------------------------------------------------------------- --
Message: 6aqd25350.1 Summary: REBOL Feedback: read-io system/ports/input 
on MS IIS [#6aqd25350] Submitted: 30-Oct-2006/13:40:01-8:00 Type: email
>The script is executing - all is working fine until I want to handle >file
uploads. The same script is working fine with file uploads on >KF web server
but on MS IIS is giving CGI timeout. >I found that script hangs or probably
waits on: >read-io system/ports/input >and do not giving upload file data
just string of some figures. >I attached example test script with upload
form. >>>Janeks >>>On 30 Oct 2006 at 7:21, feedback-rebol.com wrote:
>>>First, confirm that the script is executing. >>>>See:
http://www.rebol.com/docs/cgi1.html#section-2.1 >>>>-REBOL Support >>>>PS:
Ifyou reply, keep the same subject line and [#...].
>>>--------------------------------------------------------------------
>>---- >>Message: 6aqd25350 >>Summary: read-io system/ports/input  on
MSIIS >>Submitted: 26-Oct-2006/13:25:35-7:00 >>Type: Problem report
>>Product: REBOL/Core >>>>I had faced with problem for file uploads: >>I had
file upload script (upload.r posted somwhere in rebol >>lists/worlds) on my
web servers, that works well on KF web >server. >>But on MS IIS script hangs
and I am getting CGI timeout error >from >>server. >>>>Actualy problem is in
function read-post data - script hangs on >>read-io. >>Why it is problem for
MS IIS and how to solve them? >>>>read-post-data: func [
>>    {Reads the HTTP entity body}
>>    /safe "Disables evaluation of content-length
header." >>    /local len data tmp >>] [
>>   #160 len: load any [ all [safe "65536"]
>>system/options/cgi/content-length "0" ] >>>>    data:
make string! len >>    tmp: make string! len
>>    while [ 0 <read-io system/ports/input tmp len ] [
>>#160 insert tail data tmp
>>       #160 clear tmp
>>  &##160 ] >>>>    data >>]
>>>>>Attachments: C:\WWW\ROOT\rebol\upload.html >C:\WWW\ROOT\rebol\upload.r
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: upload.r
Date: 30 Oct 2006, 22:51
Size: 3077 bytes.
Type: Unknown
-- Binary/unsupported file stripped by Ecartis --
-- Type: Application/Octet-stream
-- File: upload.r
-- Attached file included as plaintext by Ecartis --
-- Desc: Attachment information.
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: upload.html
Date: 25 Oct 2005, 22:51
Size: 676 bytes.
Type: HTML-text
-- HTML Attachment decoded to text by Ecartis --
-- File: upload.html
Upload example
Upload