CGI.E Question
- Posted by cklester <cklester at yahoo.com> Aug 19, 2005
- 445 views
I noticed in cgi.e, the REQUEST_METHOD doesn't get defined. I've got some code I've been using (below)... How do I modify it to work with cgi.e? Thanks!
if equal(upper(getenv("REQUEST_METHOD")),"POST") then -- submitted a comment void = getenv("CONTENT_LENGTH") if atom(void) then theBody &= "read_input - no CONTENT_LENGTH" end if junk = value(void) if junk[1] = GET_SUCCESS then void = junk[2] else theBody &= "read_input - bad CONTENT_LENGTH" end if
-=ck "Programming in a state of Euphoria." http://www.cklester.com/euphoria/