From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25318 invoked by alias); 17 Jun 2002 19:06:33 -0000 Mailing-List: contact rhug-rhats-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rhug-rhats-owner@sources.redhat.com Received: (qmail 25297 invoked from network); 17 Jun 2002 19:06:31 -0000 Received: from unknown (HELO smarthost1.mail.easynet.fr) (212.180.1.68) by sources.redhat.com with SMTP; 17 Jun 2002 19:06:31 -0000 Received: from [212.11.38.52] (helo=there) by smarthost1.mail.easynet.fr with smtp (Exim 3.12 #1 (Debian)) id 17K1pd-0006XM-00 for ; Mon, 17 Jun 2002 21:06:29 +0200 From: Christophe Roux To: rhug-rhats@sources.redhat.com Subject: Re: Post request with gcj and tomcat Date: Mon, 17 Jun 2002 12:06:00 -0000 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_II6V1B6P3SR6PJ54EOU2" Message-Id: X-SW-Source: 2002-06/txt/msg00005.txt.bz2 --------------Boundary-00=_II6V1B6P3SR6PJ54EOU2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-length: 1137 Le Lundi 17 Juin 2002 20:49, vous avez écrit : > I contacted Anthony Green about a problem with servlet using tomcat and > gcj. As it seems it can interest the community, I send this mail. > My goal is simple : I want to send a POST Http request from one servlet to > an other. > I developed two small servlets M1 and M2 in order to test why it does not > work so easily. > The M1 servlet wait for the second M2 which never answers. > After a few investigations it appears that the > piece of the puzzle is gnu.gcj.protocol.http.Connection. > Reading it, I found something strange : it is as if the class uses a > ServerSocket for doing it's buziness; it starts with writing the header of > the > request, then tries to "getHttpHeader", then looks for InpuStream and then > OutputStream. > In fact, it should first write the header, then wait for a getOutputStream > and then a getInputStream. > I am not very easy with Sockets so I do not know how it works, but I think > options should tell if input is before or after output. > I hope I can help you to discover what happens. > Bye > Christophe Roux Here is a scenario for the problem --------------Boundary-00=_II6V1B6P3SR6PJ54EOU2 Content-Type: application/x-gzip; name="scenario3.tgz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="scenario3.tgz" Content-length: 2583 H4sIAE0zDj0AA+1ZX2/bOAzva/IpND85W2o7TtIM17TD1nRbgWUtmhTD4TAM jq023jm2Z8lrs6Hf/UhJ/pPEybq7tsNw4UMdUxRFkRT1o8tcGjqJH7XNnQcj y+pYvW4XnpbV2+uIZ6sjn4p2QMBqd9rAht8t27LaO6T7cCYVlDLuJITsuNPE ZxvlaLJp/Dcllsd/2DI+O1+dB1jDalnWnop3Rfzb3XY3j3+7swfy8IT4Ww9g ywr9z+Pvz+Io4QQjb/iR8XS/XuaElJdYjhvRNDGu6WTm08AYwp+h4wcLU24M 8NPXYGHeIn/KeYyD9XqcTgLfJW7gMEaGLUJvOA09Rt6CxEhK17/XCZCS/Br5 HvFDn+tq+CgKL/0r4opHQ4gi8WkSXTOihI5vXBpzPwrF+PdciqUxTQyhTinY F2O39ZU1vegN5UQvGXZOv6SUcZLQL02ywGdxFDIKA0watMaYJjk5XbaslrmU DMEdBySk1yRj6VpbAwNroznjdGZEKTfixA95EOra4PjVxZsD7dlVmBrCm7HD p4Z0Tpo4uIIhZEoKGOVnSQQe4HNdu3I/G14K0Zp8pi5nWlPjSUrFehfn70BR CGzQQmbziyM0LA0COYYc+CtthV+6hvEFBYEfpjdGELlOoDWfW816raaZgT9J qKkyQb5pOIKT0Xi0I04iHrlRIBPlrRN6AU30BtqiVhdLGmB7WFimq+AhVbgI ZxpXkDDoHb2BP987M1qoRX8MotOUxynXcfMlfcX4Sbhh+ILRI8edUqZfOgFD idqrOacvk8SZS8UjnlBnRiZOxJTHKgXKezkVEVmYDvsiB7kAEmpaFdRxnZIq 9Md14nMqRXXIMbQR2ZdByqZ69uYGEaPibQLm/fWR4AMtRoUGj3KjhYwujsVC mjTQJQ30iTomQ8qnkadrZ6ejsVZ2uRrPM5FooAWqAN99R8MrPoVE0sgzaYAR CBa52/zxPMbcKrtJw0K0CwlBk9A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