2009年2月22日星期日

[PerlChina] Re: mod_perl 输出 binmode 数据该怎么做啊?

是的,要设置输出的content-type就行了,比如image/gif,text/plain之类的。

2009/2/23 Beckheng Lam <bi.ken.lam@gmail.com>
set the header content-type with application/octet-stream
imxae wrote:
在perl程序中可以用下面的代码向浏览器输出文件,但mod_perl该怎么做呢?也试着用下面的方法,不行. 	binmode DOWN; 	binmode STDOUT; 	binmode STDERR; 	print <DOWN>; 	close DOWN;  
--
blog - http://hi.baidu.com/smallfish7788

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
 要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
 要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛

-~----------~----~----~----~------~----~------~--~---

没有评论: