At a guess, it is the difference between what VB and IE put in the http
header in terms of "accept". If your xml is encoded as UTF-8, the extra
bytes could be the UTF-8 signature?. The best way to solve this problem is
to tun something like ethereal to sniff the http packets and analyse the
contents in each case.

-----Original Message-----
From: RXZ JLo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 19 November 2002 5:47 p.m.
To: Tomcat Users List
Subject: Re: HTTP GET Response size discrepancy


Anyone again?


--- RXZ JLo <[EMAIL PROTECTED]> wrote:
> My servlet reads an xml file from the disk and just
> outputs it as the response. When I access the URL
> from
> IE, I get the xml file finely. But when I access the
> xml from my VB program, the xml seems to be somewhat
> different(I dont know in what way its different but
> MS
> XML parser refuses to parse it; IE shows it nicely
> though).
>
> The tomcat access log is as follows:
> the file size is 1489
>
> When IE requests it, the log is
> x.x.x.x - - [18/Nov/2002:16:38:24 -0600] "GET
> /myservlet?id=120 HTTP/
> 1.0" 200 1496
>
> When VB requests it, the log is
> x.x.x.x - - [18/Nov/2002:16:38:24 -0600] "GET
> /myservlet?id=120 HTTP/
> 1.0" 200 1489
>
> That is, when IE requests the xml Tomcat is sending
> 7
> bytes more.
>
> I have the following in my servlet:
> String xml = ...
> System.out.println ("xml size: " + xml.length());
> PrintWriter out = response.getWriter();
> out.print (xml);
>
> This prints 1489 for both the requests.
>
> What are those 7 bytes that get added to the
> response
> to IE, and more importantly WHY?
>
> Frustrated,
> Rf.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - Let the expert host your site
> http://webhosting.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to