tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Gobbi <AGo...@anadyspharma.com>
Subject tomcat 4.0b7: Transfer-Encoding: chunked
Date Mon, 10 Sep 2001 23:17:33 GMT
Hi,	
I am trying to call a jsp page on tomcat 4.0b7 from an <a href=> link
whithin excel and get back a strange page, which does not open correctly in
Netscape. Entering the same link into the location bar in netscape works
fine. I checked at the http headers send in both cases using HttpInspector
please find those below. The difference in the response from tomcat is that
when excels asks for the page it will include the "Transfer-Encoding:
chunked" header and some numbers grabled into the html. Here is the full bad
response (please note the 299 and 0 which miss completly when the same
request is send from netscape.

any help?

Thanks alberto

------------------------ Bad response --------------------------------------

HTTP/1.1 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Mon, 10 Sep 2001 23:09:12 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0-b7 (HTTP/1.1 Connector)

299




<html>
<head>
<title>Structure Editor</title>

<script language="javascript">
  function GetStruct(theForm)
  {  theForm._molfile.value=document.applets["CSApplet"].getData(1);
  }
</script>
</head>



<body bgcolor="#f0ffff">

<embed type="chemical/x-cdx" width="350" height="250" id="1"
viewonly="FALSE" border=1
 
dataurl="http://localhost:8080/LOCAL/ARISE/servlet/ards.gui.Mol2PNGServlet?r
etMolFile=1&MolType=BatchID&MolKey=10207">

<applet name="CSApplet" code="camsoft.cdp.CDPHelperAppSimple" width=0
height=10 VIEWASTEXT>
<param name="ID" value="1">
<param name="CABBASE" value="camsoft.cab">
</applet>

</body>
</html>

0


 
------------------------------- Excel Request ----------------------
GET
http://null:0/LOCAL/ARISE/gui/utilities/MolEdit.jsp?MolType=BatchID&MolKey=1
0207 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Host: localhost:8080
Connection: Keep-Alive
Cookie: JSESSIONID=41F0A8E924F7B0772043B814A5413265

-------------------------------- Netscape request -------------------
GET /LOCAL/ARISE/gui/utilities/MolEdit.jsp?MolType=BatchID&MolKey=10207
HTTP/1.0
Connection: Keep-Alive
User-Agent: Mozilla/4.77 [en] (Windows NT 5.0; U)
Host: localhost:8080
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Cookie: JSESSIONID=81C050338145C1645855976182D0C207



Mime
View raw message