[REBOL] Re: works for GET, not POST
From: rchristiansen:pop:isdfa:sei-it at: 30-Jan-2001 17:09
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?