Re: Is anyone else doing CGI on Mac OS X 10.5.7, Euphoria 4.x?

new topic     » goto parent     » topic index » view thread      » older message » newer message
Tuishimi said...

The code below is returning nothing. My request parsing code is not working either... even if I hard code the request method first.

Not sure what is going on, this was working on Windows with Euphoria 3.1.1. I admittedly did not try 4.x on Windows for this.

Don't forget your <eucode> tags...

global constant GET_ = "GET"
global constant POST_ = "POST" 
constant REQUEST_METHOD = "REQUEST_METHOD" 
constant QUERY_STRING = "QUERY_STRING" 
 
function get_request_method() 
    -- Returns POST or GET.  OR nothing at all. 
 
    object method 
 
    method = getenv(REQUEST_METHOD) 
 
    if atom(method) then 
        method = {} 
    end if 
	 
    return method 
end function 

Sorry I'm not much more help than that. sad

Which web server are you running?

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu