[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] Re: Make MacPerl CGI? was: [MacPerl] BOUNCE...Non-member...



Thanks for the tips.. I'll follow up on that. But my copy of MacPerl
doesn't have a readme in the cgi folder. The two items that are in there are:
	CGITest.AS - an applescript
	Demo.acgi

Also, the only options for saving are as runtime or text. 

I've just downloaded the latest and got a lot more files installed. Will
peruse this and see how it goes. Thanks, again

Terry

Thomas Wegner wrote:
> 
> >I, too, am just getting started and thought I would follow your lead,
> >here. I am running ASIP 6.3 and am trying to do perl/cgi on it, rather
> >than uploading to my domain server (Unix). Unfortunately, when I save
> >the perl script (from inside MacPerl) as a runtime, and then try to call
> >it from Netscape, it errors out in the browser (504 Gateway Timeout) and
> >actually shows up as an app in the Finder.
> >
> >I'm missing something... I know..
> >
> >Terry
> 
> Hi Terry,
> 
> you have to save your script as 'CGI Script' from inside MacPerl, not as a
> runtime. This way it will be saved as an application that is suitable for
> calling by a Mac HTTP server. Look into the 'MacPerl CGI' folder and read
> the README.CGI. In this folder are also two demo CGIs DEMO.cgi and
> DEMO.acgi (the first is a synchronous, the second an asynchronous CGI
> script). You may want to try out both to ensure that your Web-server works
> correctly. Put them in a folder that is accessible by your server and call
> the CGIs from your browser.
> 
> Please note:
> In both demo files, I've detected a little bug (in case of the POST
> request). Locate the following lines
> 
>    ...
>    ...
>    <LI> To test POST requests, fill in the following form:
>    <FORM METHOD="POST" ACTION="/Nu.acgi">
>    ...
>    ...
> 
> and then change 'Nu.acgi' (or 'Nu.cgi') into 'Demo.acgi' (or 'Demo.cgi'),
> so that the script can call itself. Note that the path in 'ACTION= ...' has
> to be the path from your server root to the demo CGI(s).
> 
> If you still haven't read David Steffen's article, read it now, it's
> worthwhile.
> 
> Best regards :-)
> 
> --Thomas

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org