I've been blocked at the very beginig of my mod_perl introduction. Any help will be very wellcomed.
The issue: The simplest script I can't think of doesn't work. my $r = shift; $r->send_http_header("text/plain"); $r->print("hello world"); When I try to access the script, my MSIE 6.0 prompts for download when it should simple print the "hello world" string. Isn't it? Other MSIE releases do print the text (without prompting for download) but the page's properties say it is from an unknown Content Type. The following is the secuence of messages I got when a test the page with a telnet session: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /perl/test.pl HTTP/1.0 HTTP/1.1 200 OK Date: Thu, 20 Mar 2003 08:37:07 GMT Server: Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.24_01 Connection: close Content-Type: text/plain hello world And something similar with HTTP/1.1: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /perl/test.pl HTTP/1.1 Host: 127.0.0.1 HTTP/1.1 200 OK Date: Thu, 20 Mar 2003 08:39:18 GMT Server: Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.24_01 Connection: close Transfer-Encoding: chunked Content-Type: text/plain b hello world 0 What I'm doing wrong?? Thanks in advance Xavi