0 Replies Latest reply on May 24, 2005 12:06 PM by Andrea Giovannini

    Problems with HTTP response body

    Andrea Giovannini Newbie

      I'm invoking an URL from Java code in JBoss 3.2.1+Tomcat4.1.24 using JDK 1.3.0_07. The response body (which I get using connection.getInputStream()) contains an XML document but sometimes I found also the HTTP headers, e.g.

      HTTP/1.1 200 OKContent-Type: text/html;charset=iso-8859-1;Transfer-Encoding: chunkedDate: Tue, 24 May 2005 12:54:53 GMTServer: Apache Coyote/1.02000<?xml version='1.0' encoding='ISO-8859-1'?><Metadata ...>...</Metadata>0

      The invoked URL is a servlet which writes the XML in the response.
      If I use JDK 1.4 it's ok.
      Any idea?