Re: Download then display page

2013-04-30 Thread Jim Schueler
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

RE: Download then display page

2013-04-30 Thread Chris Faust
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

RE: Download then display page

2013-04-30 Thread Jim Schueler
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

Re: Download then display page

2013-04-30 Thread Adam Prime
;); 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

RE: Download then display page

2013-04-30 Thread Chris Faust
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

RE: Download then display page

2013-04-30 Thread Jim Schueler
] 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