Hi,
 use $r->content_type('application/octet-stream); to set the content 
type in tissue_dump.txt if file exist and is processed as Mason component 
(or in dhandler if does not exist). I expect code will looks like

  $r->content_type('application/octet-stream'); # set content type
  $m->print($output_data);                      # output data
  return;                                       # stop component processing

 Hope it helps
  Roman

On Wed, Jan 12, 2005 at 09:38:11AM -0500, Sean Davis wrote:
> A basic question, but....
> 
> I would like to output tab-delimited text (from a database lookup) to 
> the user as an application/octet-stream with the name 
> "tissue_dump.txt".  I can't figure out the correct way to set the 
> headers under mod_perl.  Any help?
> 
> Thanks,
> Sean

-- 
 best regards
  Ing. Roman Vasicek

 software developer
+----------------------------------------------------------------------------+
 PetaMem s.r.o., Ocelarska 1, 190 00 Praha 9 - Liben, Czech Republic
 http://www.petamem.com/

Reply via email to