On Fri, 13 Aug 1999, Duncan Booth wrote:
The problem seems to be with the Netscape Proxy server interpreting the result from Zope as any side-effects on the Zope server do happen.
I put some debug logging into medusa to dump everything sent or received by Zope. Now I can see exactly what the difference is between using the proxy server and going direct, and it looks to me like a problem with Zope, but I don't know for sure and would appreciate some advice. In the following dump accesses to www.rcp.co.uk are direct, dales.rmplc.co.uk is accessed via the proxy. The data is exactly as I logged it, except that I have obscured part of the authentication string. The first POST request is via the proxy and Zope rejects it as a bad request. The second POST is direct and is accepted. Recv <zhttp_channel connected 194.154.18.78:3450 at c59230 channel#: 2 requests:0> 'POST /Test/result HTTP/1.0\015\012Referer: http://dales.rmplc.co.uk:9080/Test/Post\015\012User-Agent: Mozilla/4.61 [en] (WinNT; I)\015\012Host: dales.rmplc.co.uk:9080\015\012Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*\015\012Accept-Encoding: gzip\015\012Accept-Language: en\015\012Accept-Charset: iso- 8859-1,*,utf-8\015\012Cookie: SITESERVER=ID=97bdddbc2a4167ada362fe751304c5a4; RMID=c29a124837947b70\015\012Content-type: application/x-www- form-urlencoded\015\012Content-length: 9\015\012Forwarded: by http://duraluminium.rcp.co.uk:8080 (Netscape- Proxy/3.5)\015\012\015\012' Recv <zhttp_channel connected 194.154.18.78:3450 at c59230 channel#: 2 requests:1> 'value=123\015\012\015\012\000' Send <zhttp_channel connected 194.154.18.78:3450 at c59230 channel#: 2 requests:1> 'HTTP/None 400 Bad Request\015\012Server: Medusa/1.10\015\012Content-Type: text/html\015\012Content- Length: 136\015\012Date: Tue, 17 Aug 1999 09:20:19 GMT\015\012\015\012<head>\015\012<title>Error response</title>\015\012</head>\015\012<body>\015\012<h1>Error response</h1>\015\012<p>Error code 400.\015\012<p>Message: Bad Request.\015\012</body>\015\012' Recv <zhttp_channel connected 194.154.18.78:3450 at c59230 channel#: 2 requests:1> '' Recv <zhttp_channel connected 194.154.28.249:2565 at c5ae60 channel#: 3 requests:0> 'POST /Test/result HTTP/1.0\015\012Referer: http://www.rcp.co.uk:9080/Test/Post\015\012Connection: Keep- Alive\015\012User-Agent: Mozilla/4.61 [en] (WinNT; I)\015\012Host: www.rcp.co.uk:9080\015\012Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*\015\012Accept-Encoding: gzip\015\012Accept-Language: en\015\012Accept-Charset: iso- 8859-1,*,utf-8\015\012Authorization: Basic ********************\015\012Cookie: SITESERVER=ID=97bdddbc2a4167ada362fe751304c5a4; RMID=c29a124837947b70; dtpref_rows="25"; dtpref_cols="85"; tree-s="eJyLjlZ3hANPW/XYWAAtiQTP"\015\012' Recv <zhttp_channel connected 194.154.28.249:2565 at c5ae60 channel#: 3 requests:0> 'Content-type: application/x-www-form-urlencoded\015\012Content- length: 9\015\012\015\012value=123\015\012' Send <zhttp_channel connected 194.154.28.249:2565 at c5ae60 channel#: 3 requests:1> 'HTTP/1.0 200 OK\015\012Server: Zope/(unreleased version) ZServer/1.1b1\015\012Date: Tue, 17 Aug 1999 09:20:22 GMT\015\012Connection: close\015\012Content-Type: text/html\015\012Content-Length: 64\015\012\015\012<HTML>\012<HEAD>\012result\012</HEAD>\01 2<BODY>\012Value is 123\012</BODY>\012</HTML>' Recv <zhttp_channel connected 194.154.28.249:2565 at c5ae60 channel#: 3 requests:1> ''