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

[MacPerl] MacHTTP CGI question revisited



Thanks, all, for your replies!

	But... It still ain't workin'. The latest round of tries, with newer (but
similar) code supplied by yourselves, still comes up with a big blank! So now
I'm going to show you the code ;-) for the purposes of our mutual edification!

   test-cgi.cgi:
#-----------------------------------------------------------------------------------
#!:bin:MacPerl ƒ:perl -w

$| = 1;
print "Content-type: text/plain", "\n\n";
foreach $key (sort keys %ENV ) {
	 print $key, " = ", $ENV{$key}, "\n";
}
exit (0);
#-----------------------------------------------------------------------------------

   test.shtml:
#-----------------------------------------------------------------------------------
<html>
<head>
<Title>Test</title>
</head>
<Body>
This is a test<p>
<!--#exec script="/cgi-bin/test-cgi.cgi" post="somedata=thisdata" -->
</Body>
</html>
#-----------------------------------------------------------------------------------

   And the output is...
#-----------------------------------------------------------------------------------
This is a test
#-----------------------------------------------------------------------------------

So now my employers are beginning to give me that "and the reason we employed
you is because...?" look. Does anybody know if the ENV info is something that
can be set in WebSTAR?
-----------------------------------------------------------------
                       Open Learning Agency
4355 Mathissi Place, Burnaby, B.C. Canada, V5G 4S8 (604) 431-3000


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch