header("Content-Disposition: attachment; filename=\"" . $flash_name .
".swf\"");

php代码,翻译成perl就行了。

2009/12/17 kevin_li <[email protected]>

>
> http://192.168.1.101/MyUni/20090831/download_attachment.pl?proposal_number=1&attachment_name=test.txt
>
> http://192.168.1.101/MyUni/20090831/tmp/test.txt
> 第二种就是指到服务器本地的 链接。
> 我想用第一种方式 来模仿 第2种方式的下载 用一个PL 读取本地文件 写到输出中
> 实现了 但是默认保存的文件名 叫download_attachment.pl 不是test.txt
> 应该如何指定 CLIENT端的 保存文件名?
>
>
>  --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
> 要取消订阅此网上论坛,请发送电子邮件至 
> [email protected]<perlchina%[email protected]>
> 。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>



-- 
---------------------------
Achilles Xu
http://www.lostcode.org

--

您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。
要向此网上论坛发帖,请发送电子邮件至 [email protected]。
要取消订阅此网上论坛,请发送电子邮件至 [email protected]。
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。


回复