I believe the following will work (never tried it though):
The request should return a 'text/html' type document that displays the
instructions. But the response should be a redirect to a URL that returns
the spreadsheet instead of a 200 OK. I believe that the body of the
original response
ril 30, 2013 1:53 PM
To: Chris Faust
Cc: modperl@perl.apache.org
Subject: Re: Download then display page
I believe the following will work (never tried it though):
The request should return a 'text/html' type document that displays the
instructions. But the response should be a
ilto:jschue...@eloquency.com]
Sent: Tuesday, April 30, 2013 1:53 PM
To: Chris Faust
Cc: modperl@perl.apache.org
Subject: Re: Download then display page
I believe the following will work (never tried it though):
The request should return a 'text/html' type document that displays the
instruc
;);
print $content->output;
$r->headers_out->set(Location => $redirect);
return Apache2::Const::REDIRECT;
And the $redirect URL would then do the sending of the file itself?
Thanks!
-Original Message-
From: Jim Schueler [mailto:jschue...@eloquency.com]
Sent: Tuesday, Ap
Thanks Jim, I'm going to give that a try and see if I can get it to work.
-Chris
-Original Message-
From: Jim Schueler [mailto:jschue...@eloquency.com]
Sent: Tuesday, April 30, 2013 2:28 PM
To: Chris Faust
Cc: modperl@perl.apache.org
Subject: RE: Download then display page
Yes, t
]
Sent: Tuesday, April 30, 2013 2:28 PM
To: Chris Faust
Cc: modperl@perl.apache.org
Subject: RE: Download then display page
Yes, that's what I have in mind. I only occassionally write headers.
But I envision something similar to what you've got below:
$redirect = ... ; ## URL