On Sat, Aug 12, 2000, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>Hi Eric:
> I'm somewhat of a rebol newbie myself, but have done quite a bit
>of CGI programming. I have only looked briefly at Webserver.r, but
>I believe it is configured to handle http request specifically (that is, to
>be a server). If you are not fairly well appraised of CGI issues, there are
>a number of sites where you can get that information.
I should clarify things, I don't want to deal with CGI
issues. All
I've been doing at work for the last 3 months is writing CGI scripts in
Rebol. It's gotten to the point where some of the things I'd like to do
would be best accomplished with a small custom HTTP server.
I think I solved my problem. I went digging around in
the system/
schemes/http and looked at how it read in the http headers:
while [(line: pick port/sub-port 1) <> ""] [append headers join
line "^/"]
I put in a line like that, and then extracted the
content-length. I
used the content-length in a read-io loop to get the form data. I have to
say that this is most assuredly non-intuitive. I would never have thought
to use pick like that.
I'd kill for a really good tutorial on the ins and
outs of ports and
networking in Rebol.
>have a good grasp of CGI issues.
I do, that's why I'm biting the bullet and writing a
web server. ;)
:Eric