RE: how to send http response in several chunked package with Tomcat

2008-02-28 Thread Hanks Wang (hanwan)
Thanks. > Han > > > -Original Message- > From: Hanks Wang (hanwan) > Sent: Thursday, February 28, 2008 10:26 PM > To: Tomcat Users List > Subject: RE: how to send http response in several chunked package with > Tomcat > > Hi Filip, > > Yes it works. Tha

Re: how to send http response in several chunked package with Tomcat

2008-02-28 Thread Filip Hanik - Dev Lists
t: RE: how to send http response in several chunked package with Tomcat Hi Filip, Yes it works. Thanks a lot! Christopher, in fact I'm writing a servlet to fool a management software, So I need make sure the servlet response is as close to real device as possible. Thanks for everyone's

RE: how to send http response in several chunked package with Tomcat

2008-02-28 Thread Hanks Wang (hanwan)
Sent: Thursday, February 28, 2008 10:26 PM To: Tomcat Users List Subject: RE: how to send http response in several chunked package with Tomcat Hi Filip, Yes it works. Thanks a lot! Christopher, in fact I'm writing a servlet to fool a management software, So I need make sure the servlet resp

RE: how to send http response in several chunked package with Tomcat

2008-02-28 Thread Hanks Wang (hanwan)
ts [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 27, 2008 11:24 PM To: Tomcat Users List Subject: Re: how to send http response in several chunked package with Tomcat you don't need to do that, tomcat does it for you. all you need to do is while (havedata) { response.getOutputStream

Re: how to send http response in several chunked package with Tomcat

2008-02-27 Thread Filip Hanik - Dev Lists
ruary 27, 2008 3:40 PM To: Tomcat Users List Subject: RE: how to send http response in several chunked package with Tomcat Hi Johnny, Thanks a lot. I read the http RFC and find something like this: The chunk-size field is a string of hex digits indicating the size of the chunk. The chunked enco

Re: how to send http response in several chunked package with Tomcat

2008-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Han, Hanks Wang (hanwan) wrote: | But the question is, all these chunk and http header are in same frame | (get it from wireshark.). Then you need to increase the number of characters being sent. If you really are sending "something long" as a strin

RE: how to send http response in several chunked package with Tomcat

2008-02-27 Thread Hanks Wang (hanwan)
ssage- From: Hanks Wang (hanwan) Sent: Wednesday, February 27, 2008 3:40 PM To: Tomcat Users List Subject: RE: how to send http response in several chunked package with Tomcat Hi Johnny, Thanks a lot. I read the http RFC and find something like this: The chunk-size field is a string of hex digi

RE: how to send http response in several chunked package with Tomcat

2008-02-26 Thread Hanks Wang (hanwan)
true. --- - Original Message - From: "Hanks Wang (hanwan)" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, February 26, 2008 12:02 PM Subject: how to send http response in several chunked package with Tomcat Hi all, Is ther

Re: how to send http response in several chunked package with Tomcat

2008-02-26 Thread Johnny Kewl
. --- - Original Message - From: "Hanks Wang (hanwan)" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, February 26, 2008 12:02 PM Subject: how to send http response in several chunked package with Tomcat Hi all, Is there a way to

RE: how to send http response in several chunked package with Tomcat

2008-02-26 Thread Hanks Wang (hanwan)
Sorry for sending again, add the version info here: Tomcat version: 6.0 Http Connector: org.apache.coyote.http11.Http11NioProtocol Thanks Han

how to send http response in several chunked package with Tomcat

2008-02-26 Thread Hanks Wang (hanwan)
Hi all, Is there a way to make tomcat generate http response in chunked-encoding style? suppose I have a file resp.log and I can parse it in byte[], how can I send the byte array in several chunked package? Any suggestion is welcome! Thanks Han