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 mod

Send ASCII file to the browser

2004-11-12 Thread Michael Stepanov
out->set('Content-Disposition' => "attachment; filename=some_file); $r->sendfile($fname); I call that method from a web page. Problem: source code of the web page is added at the end of downloaded file. Any suggestions? Thanks in a