[11435] in www-talk@info.cern.ch
Trouble with custom HTTP server and web proxy
daemon@ATHENA.MIT.EDU (Timothy Aston)
Tue Sep 28 15:03:25 1999
Message-Id: <37F10EA8.CECA6C64@nortelnetworks.com>
Date: Tue, 28 Sep 1999 14:53:28 -0400
From: "Timothy Aston" <taston@nortelnetworks.com>
Mime-Version: 1.0
To: www-talk@w3.org
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-From: www-talk@w3.org
We have a client/server application in which the client uses HTTP to
communicate with our custom web server. All works fine until a web proxy gets
involved (in our test cases it is Netscape's web proxy). What happens is that
seemingly at random, the proxy resets the connection with the client, right
after our server sends the the HTTP header.
Here's what I believe to be the problem so far:
- for whatever reason, our server does not put a Content-Length in the HTTP
headers.
- I believe the problem may appear random because of timing... if the server
sends the data after the HTTP header quickly enough, the proxy sends it. If
the data is not forthcoming quickly enough, the server assumes the connection
is dead. If a Content-Lengh is provided though, it does seem wait to get the
data and we have no problem. If I put a forced delay between the sending of
the HTTP header and the content, I can get it to fail every time.
Note that we have NO PROBLEMS when its a direct connection between client and
server, its only when the web proxy is thrown into the mix that we see this
problem.
So my questions are:
1. Is Content-Length always required in an HTTP (1.0) header? What is
typical
behaviour when its not included?
2. Is there any logical reason why a proxy would be more picky about
Content-Length being there than a web browser?
-Tim