getting Scamper to eat php

John Hinsley jhinsley at telinco.co.uk
Wed Aug 22 05:02:30 UTC 2001


Duane Maxwell wrote:
> 
> > I've looked through the conf files and the mimetypes and they seem to be
> > in order. phptest.php gives: Content-Type
> > text/html;charset=iso-8859-1
> 
> I think this is the problem - MIMEDocument does not appear to understand the
> ";charset=iso-8859-1" part.
> 
> Check out method class MIMEDocument>>contentType:content: - this is the guy
> that's supposed to parse the content-type header to set the MIME type of the
> downloaded file.  It appears that your PHP file is getting the subType
> "html;charset=iso-8859-1".  Scamper doesn't unnderstand that subType, but
> does understand that the file is text, and so displays it as plain text.
> 
> The quick fix is to reconfigure your PHP to send a content-type of
> "text/html" only, or fix the bug.
> 


Thanks Duane -- I'll check that out. I thought I was going crazy for a
while! (Maybe I still am!)

Cheers

John
-- 
Can't cope anymore? Desperate for help?
Join the 12 step program for those who yearn to give up Microsoft:
http://home.earthlink.net/~penguinrox/index.html




More information about the Squeak-dev mailing list