* Alan F. Larimer, Jr. ([EMAIL PROTECTED]) [06 Jun 2001 02:59]:
> > > this is the command line from my index.htm file
> > > <!-- #exec cmd="/home/thx-1138/counter-.cgi" -->
[...]
> --- Peter Cornelius <[EMAIL PROTECTED]> wrote:
> > Umm. Don't you need an http header? print "content type:
> > text/html\n\n"; before printing anything else out. CGI.pm would
> > allow you to just say 'print header();' btw.

> I thought of that, but it is being executed from an html doc, not a
> perl script.  So now, I wonder, where is this being placed w/in the
> html doc?  If it's w/in the body, then the header is already there.
[...]

If you're doing #exec, then you don't need the HTTP headers. In most
cases, you don't even want to use #exec.

If you're doing <!--#include virtual="relative/url/parsed/by/apache" -->
then you do need HTTP headers (at least a content-type). You also get
the added advantage that Apache determines whether the caller has
appropriate permissions to run the script and you also get all the
Apache URL parsing and handling happening (hence mod_rewrite and
MultiViews work).

I believe the problem that is happening occurs within the user's (sorry,
I've lost the original email so I don't have your name) interpretation
of the server configuration.


cheers,
-- 
iain.                                          <http://eh.org/~koschei/>

Reply via email to