Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: mod_perl behavior w/out mod_perl

by jperlq (Acolyte)
on Mar 13, 2008 at 00:19 UTC ( [id://673859]=note: print w/replies, xml ) Need Help??


in reply to mod_perl behavior w/out mod_perl

hi janos,
I'm not sure if there is a specific reason you want to load the 123.pdf from a cgi script (if there is then probably stop reading here).

If you simply give the "http://myserver.com/test/123.pdf" as a link the http will automatically serve up the .pdf object (ie. so that when a user clicks on a link -- the 123.pdf file will automatically download).
There is not so much need to use the CGI module -- http is built to retrieve and serve objects such as this.

This has been my experience. I hope it helps.
Best of Luck,

Replies are listed 'Best First'.
Re^2: mod_perl behavior w/out mod_perl
by Thilosophy (Curate) on Mar 13, 2008 at 02:32 UTC
    I'm not sure if there is a specific reason you want to load the 123.pdf from a cgi script.

    janos.gonzales mentioned that the file 123.pdf does not really exist, but is dynamically generated by the CGI (in this case fetched on-demand from a different server).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://673859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found