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

[MacPerl-WebCGI] SSI and CGI



I am re-posting this question because I gather there has been some trouble
in getting people signed up for this list, so it may not have been seen by
very many people originally. Apologies to people seeing it for the second
time.

I'd like to have a CGI called from a SSI set a cookie.  I've tried to make
this work (on an Apache server) and I just can't.

I thought that all one would need to do is:

	print "Set-Cookie: cookie=whatever\n\n";

but this does nothing at all, although it works just fine in non SSI CGIs.
I've asked my ISP webmaster who has said some cryptic things about SSI
being difficult to get to work . . . so they don't "officially" support it.

Nevertheless, the script that attempts to set the cookie does execute and
does write some %ENV data to a file when called from a SSI, so I am
wondering if there is something special about getting HTTP headers to work
from a SSI called script I don't know about.  You might guess I am new to
Perl and CGI scripting.

Can anyone help?

Peter R. Wiley

PR/Design
301 South 21st Street
Lewisburg, PA 17837-1615

Phone: 570-522-0738                      Fax: 570-522-0736
	E-Mail: prdesign@sunlink.net



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