[REBOL] Re: Post vs Get
From: chris:ross-gill at: 11-Jul-2001 9:03
> don't thank me, thank whoever told me, unfortunately, I can't remember
> who it was. ;)
Thought I'd add a little footnote to my original post...
content-length: 20 + load system/options/cgi/content-length
; content length with a little to spare
post-data: make string! content-length
read-io system/ports/input post-data content-length
The value 20 was an arbitrary selection that gives some space for
url-encoded characters (or something, can't quite remember) - which
makes the post data longer than the content length. Depending on how
many of these you expect, you may want to make that number higher.