David Fraser
davidf at sjsoft.com
Mon Aug 11 09:23:51 EST 2003
Damon Lynch wrote: >On Mon, 2003-08-11 at 11:07, Russell Yanofsky wrote: > > >>Damon Lynch wrote: >> >> >>>Hi, >>> >>>There is an example test script in: >>> >>>http://www.modpython.org/live/current/doc-html/inst-testing.html >>> >>>I cannot get the example test script to run >>>... >>>the URL I'm using is: >>>http://myserver/test/mptest >>> >>> >>> >>Should that be http://myserver/test/mptest.py ? >> >> >> > >Hi Russ, > >That appears to make no difference. When I inspect the headers I'm >getting the output as application/x-python instead of text/html: > >HTTP/1.1 200 OKCRLF >Date: Mon, 11 Aug 2003 06:56:49 GMTCRLF >Server: Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.1mdk) mod_python/3.0.3 Python/2.2.2 mod_ssl/2.0.47 OpenSSL/0.9.7aCRLF >Content-Location: mptest.pyCRLF >Vary: negotiate,acceptCRLF >TCN: choiceCRLF >Set-Cookie: Apache=207.200.81.211.1060585009151968; path=/; max-age=1209600CRLF >Connection: closeCRLF >Content-Type: application/x-pythonCRLF >Expires: Mon, 11 Aug 2003 06:56:49 GMTCRLF >CRLF >Hello World! > > >I'm bamboozled at this point! > >Damon > > So the content type is being set to application/x-python ... it seems likely to me that somewhere in your Apache configuration (mime.types?) you've got it set to return this mime type ... do a search for application/x-python in your Apache conf directory files and see what you find... David
|