Ryan,
My version seems to work fine with GET and POST. I can't get your version
to work for GET and POST. When I remove the "make object!" phrase (making
it almost equivalent to Elan's), it works for get, but not post. Elan says
he uses his version for post also.
Then I started thinking that maybe it's a "version thing." I have been
using
REBOL/Core 2.3.0.3.1 for utilities and CGI. I tried using my version with
REBOL/View 0.10.38.3.1, and it worked for both GET and POST. Elan's version
also works for both GET and POST under REBOL/View 0.10.38.3.1. Remember
that this is on Windows 98.
Which version of REBOL are you using?
Here's to hopin' we're closing in.
-Scott
----- Original Message -----
From: "Ryan C. Christiansen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 5:09 PM
Subject: [REBOL] Re: works for GET, not POST
> This function doesn't work with GET on my system...
>
> > retrieve-user-data: func [] [
> > return decode-cgi
> > either system/options/cgi/request-method = "POST" [
> > data: make string! 2002
> > foreach line copy system/ports/input [
> > repend data [line newline]
> > ]
> > ][
> > either system/options/cgi/query-string [
> > system/options/cgi/query-string
> > ][
> > ""
> > ]
> > ]
> > ]
>
> My system is as follows:
>
> Apache/1.3.14 (Unix) mod_bwlimited/0.8 mod_log_bytes/0.2 PHP/4.0.4
mod_perl/1.24_01 mod_frontpage/3.0.4.3 mod_ssl/2.7.1 OpenSSL/0.9.5 on Linux
>
> The function I use works with GET, but not with POST
>
> retrieve-user-data: func [] [
> return make object! decode-cgi
> either system/options/cgi/request-method = "POST" [
> input
> ][
> system/options/cgi/query-string
> ]
> ]
>
> I'm not the sysadmin. Suggestions?
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.