Re: Error -1701
Re: Error -1701
- Subject: Re: Error -1701
- From: email@hidden
- Date: Sat, 28 Sep 2002 13:10:07 EDT
Apologies if someone has responded already, but here's my 2 cents.
In a message dated 9/26/02 7:17:53 AM, Gil Dawson writes:
>
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?
http://www.linkedresources.com/teach/applescript/writingCGIs.shtml
>
I'm using Applescript 1.8.3, Script Editor 1.6, Netscape 4.79, MacHTTP
1.0.2 and MacOS 9.2.2.
Use Script Editor 1.8.3.
Use Netscape Communicator 4.8.
What the heck is MacHTTP 1.0.2? Is that from 1992? Get the latest beta of
MacHTTP 2.5. If you are not on the MacHTTP discussion list, subscribe now. Go
to www.machttp.org and look for sign-up and download information. MacHTTP -
now open source and being actively developed!
>
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:
Are you using the "post" method?
>
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:
<snip scriptlet snippet>
>
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.
As it should. <<event WWW-omega-sdoc>> is very, very, very antiquated.
>
I'd sure appreciate an interpretation of what is going on here and any
suggestion on how to fix it.
>
--Gil
Try those things, and maybe post to the MacHTTP discussion list too. I know
Motoyuki Tanaka recently posted a concern about Applescript CGIs there.
If I ever find the time I will test things for myself.
Jeff Baumann
email@hidden
www.linkedresources.com
_______________________________________________
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.