Re: Send ASCII file to the browser

2004-11-16 Thread Michael Stepanov
Chris Gamache wrote: This might be solution: $r->content_type('text/plain'); Yes, you are right! I should be more careful! Thanks. --- Michael Stepanov <[EMAIL PROTECTED]> wrote: Hi guys, I have a small problem with sending simple ASCII file to the browser. Inside perl module I have a method wh

Re: Send ASCII file to the browser

2004-11-12 Thread Chris Gamache
This might be solution: $r->content_type('text/plain'); --- Michael Stepanov <[EMAIL PROTECTED]> wrote: > Hi guys, > > I have a small problem with sending simple ASCII file > to the browser. Inside perl module I have a method > which find and send specific file: > > my $fh = new Apache::Fil

Send ASCII file to the browser

2004-11-12 Thread Michael Stepanov
Hi guys, I have a small problem with sending simple ASCII file to the browser. Inside perl module I have a method which find and send specific file: my $fh = new Apache::File('some_file'); my $r = Apache->request; $r->content_type('plain/text'); $r->headers_out->set('Content-Disposition' => "attach