Pathologically Eclectic Rubbish Lister | |
PerlMonks |
mod_perl behavior w/out mod_perlby janos.gonzales (Novice) |
on Mar 12, 2008 at 21:19 UTC ( [id://673830]=perlquestion: print w/replies, xml ) | Need Help?? |
janos.gonzales has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am trying to build a CGI script so that when my Apache server is asked for http://myserver.com/test/123.pdf then the CGI script fires up and serves the file. The reason for this is that the file does not really exist in the 'test' folder at all but on a different machine. I figured out how to get the CGI script to copy this file and serve it and 'fool' the browser into thinking it's loading a PDF. What I need now is for the address in the url to be http://myserver.com/test/123.pdf not http://myserver.com/test/script.pl . This is so that when the file is saved it's saved with its real name not as a PDF with a wrong .pl extension. Do I have to use mod_perl for this? Or is there an easier way? Thanks Monks
Back to
Seekers of Perl Wisdom
|
|