Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Inconsistent CGI decoding behaviour

From: hallvard::ystad::helpinhand::com at: 21-Jan-2002 12:00

I tried make object! decode-cgi system/options/cgi/query-string in a CGI script and supplied a URL like this: http://www.server/cgi-bin/rebolscript.r?key=value&=nothing Obviously, the URL is not too well constructed, since the key for the value "nothing" is missing. Nevertheless, such URLs do get requested from time to time. Now here's what I got from the script: ** Script Error: Expected one of: word! - not: none! ** Where: to-set-word ** Near: to set-word! :value Is this normal behaviour? Do I have to try and catch to get my CGI parameters? Then why is this URL OK: http://www.server/cgi-bin/rebolscript.r?key=value&nothingAs I request this last URL, make object! decode-cgi system/options/cgi/query-string will become: make object! [ key: "value" nothing: "" ] So why the inconsistency? ~H