[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: question on downloading CGI
From:       practicalperl () gmail ! com
Date:       2008-09-08 8:45:32
Message-ID: fbe35f750809080145y4ffe8629lfbcb880f306adb47 () mail ! gmail ! com
[Download RAW message or body]

Thank you all so much. I have resolved the problems.

On Sat, Sep 6, 2008 at 3:51 AM,  <adam.prime@utoronto.ca> wrote:
> Quoting practicalperl@gmail.com:
>
>> Hello,
>>
>> I want to generate a data file which should be downloaded by clients.
>> Rather than generate this file and put it in a web dir and tell
>> clients to download it, is there any way to generate the content
>> dynamicly and put it to cients? I mean I don't want to generate the
>> temporary file. Thanks.
>
> This reads to me like you just want to cause the browser to prompt the user
> to save the file to disk instead of render the content you are generating in
> which case you should read about the Content-Disposition header:
>
> http://www.ietf.org/rfc/rfc1806.txt
>
> The quick summary of which is to add a header to your response that looks
> like this:
>
> Content-Disposition: attachment; filename=filename.extention
>
> Adam
>
>
>
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic