Hi,

I just started using Apache::ASP, and and I'm experiencing a strange
problem:

When I try to view any .asp page on my server, my browser (Microsoft IE 6)
displays nothing. In trying to debug this, I've ended up with a test.asp
page that contains only plain text (specifically, "Hello, world"), no <% %>
tags whatsoever. Even still, when I request that page, IE shows nothing. (I
also tried Opera, which did something even stranger - it automatically
re-requests the page several times and then gives up, reporting this error:
"Repeated attempts failed to load this page completely.")

My .htaccess file is pretty minimal:

    <Files ~ (\.asp)>
      SetHandler  perl-script
      PerlModule  Apache::ASP
      PerlHandler Apache::ASP
      PerlSetVar  Global .
      PerlSetVar  NoState 1
    #  PerlSetVar  StateDir /tmp/asp
    </Files>

When I looked in Apache's error_log, no errors were reported, so I decided
to use lwp-request, to take a look at the raw HTTP response. Here's what it
shows:

    $ lwp-download -S -e http://www.jessicamd.com/test.asp
    GET http://www.jessicamd.com/test.asp --> 200 OK
    Cache-Control: private
    Connection: close
    Date: Fri, 18 Jan 2002 00:57:20 GMT
    Server: Apache/1.3.22 (Unix) mod_gzip/1.3.19.1a mod_perl/1.26
mod_bwlimited/0.8 PHP/4.1.0 mod_log_bytes/0.3 FrontPage/5.0.2.2510
mod_ssl/2.8.5 OpenSSL/0.9.6b
    Content-Length: 13
    Content-Type: text/html
    Client-Date: Fri, 18 Jan 2002 00:57:20 GMT
    Client-Response-Num: 1

    Hello, world.

This looks like a perfectly valid HTTP response to me, but my browser(s)
disagree.

I even copied test.asp to test.txt, and ran lwp-request on it, to compare:

    $ lwp-request -S -e http://www.jessicamd.com/test.txt
    GET http://www.jessicamd.com/test.txt --> 200 OK
    Connection: close
    Date: Fri, 18 Jan 2002 01:00:16 GMT
    Accept-Ranges: bytes
    ETag: "2f81e9-d-3c476892"
    Server: Apache/1.3.22 (Unix) mod_gzip/1.3.19.1a mod_perl/1.26
mod_bwlimited/0.8 PHP/4.1.0 mod_log_bytes/0.3 FrontPage/5.0.2.2510
mod_ssl/2.8.5 OpenSSL/0.9.6b
    Content-Length: 13
    Content-Type: text/plain
    Last-Modified: Fri, 18 Jan 2002 00:13:06 GMT
    Client-Date: Fri, 18 Jan 2002 01:00:16 GMT
    Client-Response-Num: 1

    Hello, world.

To my eyes, these responses look pretty similar. The only differences that I
see appear to be harmless. The .asp response has one extra header
(Cache-Control) while the .txt response has three extra headers:
Accept-Ranges, ETag, and Last-Modified. Could any of these be the culprit?

I'm sure I'm missing something really obvious, but I'm stumped. Ideas?

Thanks in advance,
Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to