Is anyone else doing CGI on Mac OS X 10.5.7, Euphoria 4.x?
- Posted by Tuishimi Jul 07, 2009
- 1276 views
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.
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