CGI error problems
CGI error problems
- Subject: CGI error problems
- From: Steve Kump <email@hidden>
- Date: Fri, 7 Sep 2001 17:16:08 -0500
Hi List,
I'm very frustrated with the results I am getting from on handle CGI request.
EVERY time I get a network error connection when calling the acgi.
"The attempt to load "Accessing URL:
http://192.168.1.2/cgi-bin/script.acgi?name=test' failed"
Running IE Mac 5
WebStar 4.4
OS 9.1 with AS 1.6
The scripts are open so the bug with the closed scripts shouldn't be
a problem here. I am simply trying to get a very basic sample going
from the Applescript in a Nutshell reference book:
on handle CGI request myURL searching for mySearchArgs
set myArgList to (tokenize mySearchArgs with delimiters {"&", "="})
set mySearchValue to (offset in list myArgList of "name" with
returning next item)
set crlf to (ASCII character 13) & (ASCII character 10)
set myHTML to "HTTP:1.0 200 OK" & crlf & "Server:
WebSTAR/4.4" & crlf & "MIME-Version: 1.0" & crlf & "Content-type:
text/html" & crlf & crlf
set myHTML to myHTML & "<html><body><p>Your name is " &
mySearchValue & "</body></html>"
return myHTML
end handle CGI request
Everything I have tried so far, even the SIMPLEST of scripts that
should only return "Hello!" result in a failed connection, although
WebStar seems to retrieve the results correctly and pass then to the
client. I have followed the web monitor closely and have verbose
messaging enabled so I can see exactly what is happening.
(Using the ACME tokenize osax)
Thanks for any ideas or help!
--
Steve Kump
Xpressdocs
2916 W 6th Street
Fort Worth, TX
76107