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; } 1; virtual host config: <VirtualHost 212.248.52.90> ServerAdmin [EMAIL PROTECTED] ServerName cornertd.dev.itlegion.ru AddDefaultCharset windows-1251 DocumentRoot "/hosts/cornertd.ru/htdata" ErrorLog /hosts/cornertd.ru/logs/errors CustomLog /hosts/cornertd.ru/logs/access combined AddHandler server-parsed .html <Directory "/hosts/cornertd.ru/htdata"> Options Indexes +Includes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "/hosts/cornertd.ru/cgi-bin/" <Directory "/hosts/cornertd.ru/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> PerlWarn Off PerlModule Apache::DBI # tried on and off here # PerlSendHeader off <Location "/Go"> SetHandler perl-script PerlHandler Camelia::Exec::Retail PerlSetEnv PERL5LIB "/hosts/cornertd.ru/cgi-bin/lib" # tried on and off PerlSendHeader off </Location> </VirtualHost> ------ TEST --------- osiris:hosts-> telnet osiris.itlegion.ru 80 Trying 212.248.52.90... Connected to osiris.itlegion.ru. Escape character is '^]'. 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 14 <B>HELLO WORLD</B> 0 As you see Content-Type: text/html; charset=windows-1251 and not text/plain which i have specified. (14 and 0 and due to the chuncked, i guess). Any ideas how to set text/plain ? Regards, Artem Kuchin General Director of IT Legion Ltd. Russia, Moscow www.itlegion.ru [EMAIL PROTECTED] +7 095 232-0338 -- 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