• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can any tell me about error -1701?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can any tell me about error -1701?


  • Subject: Re: Can any tell me about error -1701?
  • From: Michael Britt <email@hidden>
  • Date: Sun, 27 Jan 2002 12:29:26 -0800

>> 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.

To make sure that I wasn't having typo problems, I downloaded some scripts
from the companion site for "AS for the Internet". This one gives me the
same -1701 error.

on handle CGI request myURL ,
of content type myContentType ,
using access method myAccessMethod ,
from user myUser ,
using password myPassword ,
referred by myReferrer ,
from browser myBrowser ,
from client IP address myAddress
set crlf to (ASCII character 13) & (ASCII character 10)
set myHTML to "HTTP/1.0 200 OK" & crlf & "Server: MacHTTP/2.0" & crlf &
"MIME-Version: 1.0" & crlf & "Content-type: text/html" & crlf & crlf
set myHTML to myHTML & "<HTML><BODY><P>Your browser is " & myBrowser
set myHTML to myHTML & "<P>Referred to by " & myReferrer &
"</BODY></HTML>"
return myHTML
end handle CGI request

Again, I think that myURL is an undefined variable but this comes straight
out of the book. Any help would be greatly appreciated. I am trying to
figure this out today, so if anyone chooses to help me please send replies
directly to email@hidden since I am on the digest.

Thanks, Michael Britt
--


  • Follow-Ups:
    • Re: Can any tell me about error -1701?
      • From: Brian Johnson <email@hidden>
  • Prev by Date: Re: Fetch Droplet v2
  • Next by Date: Re: Close Access
  • Previous by thread: Re: Can any tell me about error -1701?
  • Next by thread: Re: Can any tell me about error -1701?
  • Index(es):
    • Date
    • Thread