Artem Koutchine wrote:
I have tried everything i knew and still cannot
set any content-type different from text/html
here is the code:
package Exec;
use Apache::Constants qw(OK);
use strict;
sub handler {
# Get the Apache request object...
my $r = shift;
# tried this
#$r->content_type('text/plain');
# tried and this
#$r->header_out('Content-type:', 'text/plain');
$r->send_http_header('text/plain');
$r->print("<B>HELLO WORLD</B>\n");
return OK;
}
[...]
AddDefaultCharset windows-1251
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Could this be the reason? Doesn't it apply only for text/html content types?
GET / HTTP/1.1
Host: cornertd.dev.itlegion.ru
HTTP/1.1 200 OK
Date: Wed, 03 Mar 2004 12:40:41 GMT
Server: Apache/1.3.27 (Unix) mod_fastcgi/2.4.0 mod_perl/1.27 PHP/4.3.4RC1
mod_ssl/2.8.12 OpenSSL/0.9.7 AuthMySQL/2.20 mod_gzip/1.3.26.1a
Transfer-Encoding: chunked
Content-Type: text/html; charset=windows-1251
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html