CGI.E Question

new topic     » topic index » view thread      » older message » newer message

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/

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu