[plug] Apache/Perl

Anne Busby anne at busby.net
Sun Feb 10 17:39:54 WST 2002


On 10 Feb 2002, Kim Covil wrote:

> Either you haven't restarted apache and so the new configuration
> settings have not taken effect yet and it is trying to get you to save
> the .pl file itself or the script may not be sending the correct HTTP
> headers and it is trying to get you to save the results of running the
> script...
was done
> Try running 'lynx -head <url>' and look for a 'Content-Type: ....' line
>
> if that line isn't text/html or something else the browser knows to
> render internally it will just ask you where to save it...

unfortunately it happens on the 3 or 4 call to the script - which using
includes and custom .pm files. (and lynx just returns 'false' at the
bottom of the screen and re-displays the original page)

> Depending on how complex the script is you might be able to fix it
> simply by adding the line 'print "Content-Type: text/html\n\n";' near
> the top of it...
yes, the script has this line

> Cheers
>
> Kim
>
> On Sun, 2002-02-10 at 17:11, Anne Busby wrote:
> >
> > Hi Guys,
> >
> > I am trying to run an app that uses perl to create its web interface, more
> > often than not the browser (Opera/Netscape) prompts me to open/save the
> > file rather than just displaying it.
> >
> > Do I have my apache settings stuffed up for this to happen ?
> >
> > The app just said to add 'AddHandle cgi-script pl' and to create an alias
> > and directory entry for the app dir.
> >
> >
> > Anne Busby
> > E-Mail: anne at busby.net
> > Web:    http://www.busby.net
> --
> ===========================================================================
> Kim Covil - CSIRO Exploration & Mining  E-mail:  kim.covil at csiro.au
> ,-_!\
>             PO Box 1130, Bentley,       Direct:  +61 8 6436 8638    /
> \
>             Western Australia  6102     Fax:     +61 8 6436 8555
> *_,-._/
> ========================================================================
> v
>         Please direct all personal e-mail to kimbotha at covil.com.au
>
>
>



More information about the plug mailing list