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

Re: [MacPerl] Testing a perl cgi offline



At 4:04 pm +0100 10/1/00, John Neale wrote:

>everything is now running smoothly (with IP address set to 1.1.1.1 for ease
>of use)

That is certainly nice and easy to type into the browser to get the URL.

>To get the script to launch properly, I have to export it from BBEdit5.1 as
>a CGI script. This seems to get it to launch MacHTTP automatically, feeding
>the output back to my browser. Have I understood that correctly??

So you have MacHTTP.  Isn't that a lot more expensive and out of date 
than NetPresenz with fewer features?

>I'm only guessing here - but could I circumvent this by setting Personal
>Web Sharing (in Edit->Preferences->Actions) to launch MacHTTP when it hits
>a .pl text file, and then run the .pl file with MacPerl?

I save it from MacPerl as a CGI and then call it from the page in question.

I access the site <http://158.152.20.126/somesite/index.html> or just

<http://127.0.0.1/>

127.0.0.1 is localhost, so whatever IP address you have set in TCP is 
irrelevant; 127.0.0.1 will get you there, just as if you send from 
Eudora to EIMS on the local machine, you use 127.0.0.1 as your SMTP 
server.  See below for the EIMS log of a message sent this way.

   Go to the URL of the page that call the CGI, eg. the form to 
submit, click the submit button and the CGI will launch on your 
machine and do its stuff.

JD




Eudora Internet Mail Server 1.3.1 5 November 1998 9:54am
PowerPC version
Mon, 10 Jan 2000 16:25:42 +0000
IP address: 158.152.20.126
Open Transport 1.1.1
Default domain:
Looking up server name...
Remembered name: eremita.demon.co.uk
Server name is eremita.demon.co.uk
SMTP & POP3 ready
Server ready to go.
Mon, 10 Jan 2000 16:29:41 +0000 127.0.0.1 SMTP connection opened
Mon, 10 Jan 2000 16:29:43 +0000 127.0.0.1 ESMTP connection from 
[158.152.20.126]
  (127.0.0.1)
Mon, 10 Jan 2000 16:29:51 +0000 127.0.0.1 Receiving message (3072 bytes)
Mon, 10 Jan 2000 16:29:52 +0000 127.0.0.1 Message received OK (1855 bytes)
Moving message from JD@EREMITA.demon.co.uk to JD@EREMITA.demon.co.uk
Mon, 10 Jan 2000 16:30:00 +0000 127.0.0.1 SMTP connection closed










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