Error -1701
Error -1701
- Subject: Error -1701
- From: Gil Dawson <email@hidden>
- Date: Thu, 26 Sep 2002 01:58:59 -0700
I'm having a problem getting my first Applescript cgi to work with MacHTTP, and I wonder if someone might be able to suggest what I might be doing wrong?
I'm using Applescript 1.8.3, Script Editor 1.6, Netscape 4.79, MacHTTP 1.0.2 and MacOS 9.2.2.
I downloaded from Apple a sample cgi program and html file, and configured it according to the instructions. When I press the Submit button in Netscape, the cgi loads and executes, but Netscape displays garbage while MacHTTP logs an error message:
Error -1701: Getting CGIreply string (Requested descriptor was not found (reply))
In the cgi script from Apple, I inserted a "beep 2" command above the "on cgi request" handler and a "beep 3" inside the handler:
------------------------------------------------------------
property crlf : (ASCII character 13) & (ASCII character 10)
property http_10_header : "HTTP/1.0 200 OK" & crlf... (etc.)
beep 2
on handle CGI request path_args ,
searching for http_search_args with posted data post_args ... (etc.)
beep 3
set return_page to http_10_header ... (etc.)
...
& "</I>" & "</BODY></HTML>"
return return_page
end handle CGI request
------------------------------------------------------------
The first time I press Submit, I get 2 beeps just after the cgi loads, but thereafter no more. No matter how many times I cycle Submit (until I Quit the cgi), I get a garbage string returned, but no beeps.
I think this means that the cgi is loading and executing its "run handler" section at the top, but the "on handle CGI request" handler is not executing.
I tried changing the "on handle cgi request" command to "on <<event WWWsdoc>>", but the Script Editor just changed it right back at compile time.
I'd sure appreciate an interpretation of what is going on here and any suggestion on how to fix it.
--Gil
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.