REV CGIs
Thomas McGrath III
3mcgrath at comcast.net
Wed Mar 26 17:21:15 EDT 2008
After the recent articles in the REV newsletter I have been trying to
learn how to use REV in CGI calls. I have had some success on my local
machine using revHTTP and am now trying to figure out how to get this
on my remote server. The server is on MacHighway and they have set up
a cgi-bin for me.
I am wondering which engine do I upload and how can I test if it is
working? Will the unix engine named rev work on Apache? Or should I
upload the OSX app?
Anyone have experience with this??
I uploaded the echo.mt file and get this back:
http://www.lazyriversoftware.com/cgi-bin/echo.mt
$SCRIPT_NAME = /cgi-bin/echo.mt $REQUEST_URI = /cgi-bin/echo.mt
$REQUEST_METHOD = GET $SERVER_PROTOCOL = HTTP/1.1 $GATEWAY_INTERFACE =
CGI/1.1 $SERVER_SOFTWARE = Apache $SERVER_SIGNATURE = <ADDRESS>Apache/
1.3.33 Server at www.lazyriversoftware.com Port 80</ADDRESS>
$SERVER_PORT = 80 $SERVER_NAME = www.lazyriversoftware.com
$SERVER_ADMIN = [no address given] $SERVER_ADDR = 216.183.98.28
$SCRIPT_FILENAME = /Library/WebServer/WebSites/mcgrath3/public_html/
cgi-bin/echo.mt $REMOTE_PORT = 43024 $REMOTE_ADDR = 71.60.204.211
$PATH = /usr/bin:/bin $HTTP_USER_AGENT = Mozilla/5.0 (Macintosh; U;
Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.13 (KHTML, like Gecko)
Version/3.1 Safari/525.13 $HTTP_HOST = www.lazyriversoftware.com
$HTTP_COOKIE = __utmz=253121428.1205363883.1.1.utmcsr=(direct)|
utmccn=(direct)|utmcmd=(none);
__utma=253121428.335937351.1205363883.1205522016.1206210182.4
$HTTP_CONNECTION = keep-alive $HTTP_ACCEPT_LANGUAGE = en-us
$HTTP_ACCEPT_ENCODING = gzip, deflate $HTTP_ACCEPT = text/
xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,*/*;q=0.5 $DOCUMENT_ROOT = /Library/WebServer/
WebSites/mcgrath3/public_html/ $0 = /Library/WebServer/WebSites/
mcgrath3/public_html/cgi-bin/echo.mt it
Thanks
Tom McGrath
More information about the use-livecode
mailing list