I added the "$r->content_type('text/html');" statement within the <init>
section of results.pl and it works for the first couple of searches, but
then starts returning results.pl as a file for download!!!

Yikes!

I also notice that /comps/search/ doesn't have an autohandler or dhandler
(although several other dirs under /comps/ don't either.

> make sure that the search area itself is using Mason

Is this an httpd.conf file setting? Is there a diagnostic way to determine
how something is being run (CGI vs Mason vs ???)?

Thanks

----- Original Message ----- 
From: "Oliver Jeeves" <[EMAIL PROTECTED]>

Mason components don't generally have a .pl extension (in my experience
anyway, not that there's any reason why they couldn't), so first of all,
make sure that the search area itself is using Mason, and doesn't use
something else like Mod_perl::Registry(?) or straigh CGI to run.

You can set content type in a component, by calling:

$r->content_type('text/html');

Or you can tell Apache to add it with the directive:

DefaultType text/html


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to