Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: read bug?

From: gchiu:compkarori at: 4-May-2001 22:31

On Wed, 02 May 2001 08:13:37 -0500 Joel Neely <[joel--neely--fedex--com]> wrote:
> if system/options/cgi/request-method = "GET" [ > do decode-cgi system/options/cgi/query-string] > if system/options/cgi/request-method = "POST" [ > post: make string! input do decode-cgi post]
Hi Joel, I changed my code to use 'read/custom instead of just 'read and this has stopped the url mangling that I was experiencing. I then hit the POST character limit that you described above. Using Holger's/Chris' code -- if system/options/cgi/request-method = "POST" [ len_post: ( 20 + load system/options/cgi/content-length ) post: make string! len_post while [0 < read-io system/ports/input post len_post ] [] do decode-cgi post ] seems to have fixed it. My vidwikibeta script can now post over 17k without loss. If you want to stress it, the script is on my site. -- Graham Chiu http://www.compkarori.co.nz/index.r