perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Peters <mpet...@plusthree.com>
Subject Re: Suggestions for creating an archive
Date Wed, 31 Aug 2005 17:48:06 GMT


Perrin Harkins wrote:
> On Wed, 2005-08-31 at 18:38 +0100, Dermot Paikkos wrote:
> 
>>Do you mean a redirect to a completely separate handler or cgi? 
> 
> 
> I mean a standard redirect to a normal .zip file, which you let apache
> serve for you like any other file.  Then you clear these out
> periodically with a cron job.
> 
> 
>>So I guess the question is there a way define a name for the 
>>download?
> 
> 
> There is a way to do it, defined as part of HTTP or MIME -- I can't
> quite remember.  If you do an external redirect you won't have to bother
> figuring it out.

If you are generating your own content headers you use the
Content-Disposition header.

Something like:
    $r->header_out(
        'Content-Disposition' => 'inline; filename=my_cool_stuff.zip'
    );

-- 
Michael Peters
Developer
Plus Three, LP


Mime
View raw message