Re: Can any tell me about error -1701?
Re: Can any tell me about error -1701?
- Subject: Re: Can any tell me about error -1701?
- From: Brian Johnson <email@hidden>
- Date: Sun, 27 Jan 2002 18:02:39 -0800 (PST)
Try the "Demo CGI SCRIPT" from the bottom of the page at
http://www.caup.washington.edu/software/.
I suspect the problem is that your server isn't "doing the right thing".
You mention that you're using OS9, but not what the server is. You might
try an alternative server (MacHTTP, WebStar in "demo" mode, etc.).
Finally, when you're just getting started, try returning ONLY static text.
Then you don't need ANY parameters. Just return (the header)&"hello" as a
"basic function" test.
Brian Johnson, Dept of Architecture, University of Washington, Seattle
p.s. the "referer" spelling is an old-old typo that's been part of the
applescript CGI scene forever. It's 'wrong' english, but 'right' cgi
scripting.
On Sun, 27 Jan 2002, Michael Britt wrote:
>
>> When I try out acgi scripts on my server I get: "Error receiving results
>
>> from ACGI execution. (-1701)"
>
>
>
> The official interpretation is "Some parameter is missing for <commandName>".
>
> You can find this and more at <http://developer.apple.com/techpubs/
>
> macosx/Carbon/interapplicationcomm/AppleScript/AppleScriptLangGuide/
>
> AppleScript.109.html>. This is one of the 'Apple Event Errors'.
>
>
>
> As for your specific problem - it would be useful to know more about the
>
> script it occurs in. Post some code.
>
>
Thank you for your reply. The following is a script copied from "AS in a
>
Nutshell" pg 401:
>
>
on handle CGI request searching for theString referred by referer
>
set crlf to (ASCII character 13) & (ASCII character 13)
>
set the Html to "HTTP/1.1 200 OK" & crlf & "Content-type: text/html" &
>
crlf & crlf
>
set theHtml to theHtml & "<html><head><title>First
>
Page</title></head><body bgcolor=#ffffff>" & ,
>
"Your were referred by: " & referer & "<p>" & "The search string
>
is: " & theString & "</body></html>"
>
return theHtml
>
end handle CGI request
>
>
I get the -1701 error when I try to run it. The only thing I see wrong with
>
it is referer is spelled wrong and it shows up in the script editor as a
>
variable. I don't see where it is defined.