From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10472 invoked by alias); 17 Jun 2002 18:47:06 -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 10422 invoked from network); 17 Jun 2002 18:47:01 -0000 Received: from unknown (HELO smarthost2.mail.easynet.fr) (212.180.1.69) by sources.redhat.com with SMTP; 17 Jun 2002 18:47:01 -0000 Received: from [212.11.38.52] (helo=there) by smarthost2.mail.easynet.fr with smtp (Exim 3.12 #1 (Debian)) id 17K1Wm-0005yJ-00; Mon, 17 Jun 2002 20:47:00 +0200 Content-Type: text/plain; charset="iso-8859-15" From: Christophe Roux To: green@redhat.com Date: Mon, 17 Jun 2002 11:47:00 -0000 Cc: rhug-rhats@sources.redhat.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Post request with gcj and tomcat Message-Id: X-SW-Source: 2002-06/txt/msg00004.txt.bz2 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