[REBOL] Re: webserv.r and POST
From: volker::nitsch::gmail::com at: 26-Dec-2004 17:28
On Sat, 25 Dec 2004 21:53:29 -0500, Eric Haddix <[eric--ehrichweiss--com]> wrote:
>
> Anyone use webserv.r with POST data? I've had success with GET but for
> some reason I can't get it to handle POST data at all. Anyone know what
> I might be doing wrong?
>
IIRC webserv.r passes the port in a different way to a webserver. Some
methods don't work then. Maybe Cal found a workaround, it seems he
passes data in a temp-file now, instead of passing the real port.
In some old code i use this with both apache and webserv.r :
read-post: func [/local data len] [
either system/options/cgi/request-method = "POST" [
set-modes system/ports/input [lines: false binary: true no-wait: false]
len: to-integer system/options/cgi/content-length
data: to-string copy/part system/ports/input len
] [
data: system/options/cgi/query-string
]
data
]
> Eric
> --
> To unsubscribe from the list, just send an email to rebol-request
> at rebol.com with unsubscribe as the subject.
>
--
-Volker
Any problem in computer science can be solved with another layer of
indirection. But that usually will create another problem.
David
Wheeler