[Zope] - PCGI with IIS 4.0

Hannu Krosing hannu@trust.ee
Fri, 22 Jan 1999 20:37:45 +0200


Hannu Krosing wrote:
> 
> Jeff Bauer wrote:
> >
> > Hannu,
> >
> > Have you seen my starship notes?  You need to specify
> > PYTHONUNBUFFERED mode.  This can be done globally
> > in an Apache conf file or even in the pcgi info file.
> >
> >   http://starship.skyport.net/crew/jbauer/apachenotes/
> >
> > -Jeff
> 
> Thanks,
> 
> This fixed the problem on my test machine (P200MMX, WinNT 40, running
> IIS 4.0),
> but unfortunately not on the machine my client wants to run the server
> on (P90,  WinNT 4.0, IIS 4.0, but also MS Proxy Server 2.0).
> 
> I have not tested if It could be the proxy server, as I have not yet
> properly set it up on my home computer.

Ok, now I think I've figured it out:
It seems like something - most likely the MS Proxy Server - takes 
and converts all line endings (mine are just \n) to CRLF, but 
_without_ changing the Content-length: header.
It has no ill effect on NS browsers, but it terminally confuses 
IE 4.0, which gets only the amount of bytes that its buddy tells it to 
and thus gets incomplete page.

I have not yet figured out what to do with it (except use MSDOS line 
endings everywhere).

I know that CRLF is the standard way for HTTP headers (am I right here?)
but to my knowledge HTML (SGML) should just consider all whitespace
equal

It seems that the problem has left Zoposphere, I just told it to save 
peoples time in case any of you will ever have to use the same conf 
(IIS and MS Proxy on the same computer). I suspect it will affect any 
CGI-generated html, not just PCGI/Bobo/Zope

-------------------------
 Hannu Krosing