Do you see the same behavior if you make a static .html page containing a
hard-coded JSON response and point your browser client at that URL?
On Wed, Apr 16, 2008 at 12:25 PM, Danilo Luiz Rheinheimer
[EMAIL PROTECTED] wrote:
Jim,
Thanks for your help.
I am not setting the content-length
Hi,
I have a Java application running on a Tomcat server
(last version of the 5.5 serie). Java version is 6.
I have a servlet inside this application who returns
json to the browser (if you do not know json it is
just a text).
This process it taking a very long time, something
like 10
Does the client get a Content-length header, and if so does the actual
length of the response body match? If not it has to either timeout or wait
for the server to close the connection.
On Wed, Apr 16, 2008 at 11:33 AM, Danilo Luiz Rheinheimer
[EMAIL PROTECTED] wrote:
Hi,
I have a Java
Jim,
Thanks for your help.
I am not setting the content-length on my servlet
code.
But if I see the response headers (using firebug) I
have this result :
Content-Length: 4332
Content-Type: text/html
But another tool I have show me the page size as 4276.
If I print the size of my response
On Wed, Apr 16, 2008 at 9:25 AM, Danilo Luiz Rheinheimer
[EMAIL PROTECTED] wrote:
Probably not relevant :-) but
response.setContentType(text/html);
:: shouldn't that be (application/json) ?
PrintWriter w = response.getWriter();
w.write(s);
:: are you doing a flush() and close() after
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hassan,
Hassan Schroeder wrote:
| On Wed, Apr 16, 2008 at 9:25 AM, Danilo Luiz Rheinheimer
| [EMAIL PROTECTED] wrote:
|
| Probably not relevant :-) but
|
| response.setContentType(text/html);
|
| :: shouldn't that be (application/json) ?
You might