APR-https failed (the server.xml is correct definitely)

2008-03-03 Thread Hanks Wang (hanwan)
Hi all, Anyone meets such issue before? Tomcat console shows: Mar 4, 2008 8:53:23 AM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Mar 4, 2008 8:53:23 AM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-443

RE: APR-https failed (the server.xml is correct definitely)

2008-03-03 Thread Hanks Wang (hanwan)
Hi guys, [ISSUE RESOLVED] I change back to Tomcat5.5 and everything works well now. write it here in case someone meet same issue in future. B.R Han -Original Message- From: Hanks Wang (hanwan) Sent: Tuesday, March 04, 2008 9:04 AM To: Tomcat Users List Subject: APR-https failed

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

2008-02-28 Thread Hanks Wang (hanwan)
data) response.flushBuffer() } and tomcat takes care of the rest Filip Hanks Wang (hanwan) wrote: Hi Johnny, I try below method implement the chunk in code: String tmp = something very long; String hlen = Integer.toHexString(tmp.length()); hlen = hlen +\r\n + tmp.toString(); String

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

2008-02-28 Thread Hanks Wang (hanwan)
in such way: Frame 1: includes httpheader and the first chunk, 1st chunk carries part1; Frame 2: includes part2 + part3; Frame3 and Frame4 are same with above; So how can I make sure there is only http header in the first frame? Thanks. Han -Original Message- From: Hanks Wang (hanwan) Sent

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

2008-02-28 Thread Hanks Wang (hanwan)
chunked package with Tomcat //first flush headers response.flushBuffer() //then flush body while (havedata) { response.getOutputStream().println(some data) response.flushBuffer() } you need to put your thinker hat on Hanks :) Hanks Wang (hanwan) wrote: Hi Filip, Seems the method has a problem

Zero-pad the chunk length which generated by tomcat automatically

2008-02-28 Thread Hanks Wang (hanwan)
the chunk-length? Thanks! Han -Original Message- From: Hanks Wang (hanwan) Sent: Friday, February 29, 2008 9:15 AM To: 'Tomcat Users List' Subject: RE: how to send http response in several chunked package with Tomcat My God, I am actually not aware of that despite it's so obvious

RE: Zero-pad the chunk length which generated by tomcat automatically

2008-02-28 Thread Hanks Wang (hanwan)
the chunk length which generated by tomcat automatically From: Hanks Wang (hanwan) [mailto:[EMAIL PROTECTED] Subject: Zero-pad the chunk length which generated by tomcat automatically In real world, the chunk-size will be zero-pad until 8 bytes. Where in the HTTP RFC do you find any

RE: Zero-pad the chunk length which generated by tomcat automatically

2008-02-28 Thread Hanks Wang (hanwan)
Hi Chunk, I saw it, thank u very much! -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 2:55 PM To: Tomcat Users List Subject: RE: Zero-pad the chunk length which generated by tomcat automatically From: Hanks Wang (hanwan

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

2008-02-27 Thread Hanks Wang (hanwan)
need 3 frame for the case: the first frame will carry the http header, the second will carry the first chunk data, the last frame will carry the end chunk. Does it mean I need control the tcp/ip protocol? It's impossible, right? B.R Han -Original Message- From: Hanks Wang (hanwan) Sent

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

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

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

2008-02-26 Thread Hanks Wang (hanwan)
. --- - Original Message - From: Hanks Wang (hanwan) [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org 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 make