RE: Zero-pad the chunk length which generated by tomcat automatically
Hi Chuck, Maybe I used a improper word here. I know the spec doesn't say the chunk-size has to be zero-pad to eight bytes. But unfortunately there is such a case indeed and the real device sends all chunk with chunk-size zero-filled. And I need simulate the device and send the same response as the real one. So all I want to know is whether I can use some way to zero-pad the chunk-length which generated by tomcat. Thanks Han -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 2:29 PM To: Tomcat Users List Subject: RE: Zero-pad 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 requirement to zero-fill the chunk-size to eight bytes? The spec defines chunk-size as one or more HEX digits, nothing more. I'm curious: what real-world client are you using that hasn't implemented that part of the RFC properly? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Zero-pad 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 requirement to zero-fill the chunk-size to eight bytes? The spec defines chunk-size as one or more HEX digits, nothing more. I'm curious: what real-world client are you using that hasn't implemented that part of the RFC properly? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Zero-pad the chunk length which generated by tomcat automatically
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) [mailto:[EMAIL PROTECTED] Subject: RE: Zero-pad the chunk length which generated by tomcat automatically So all I want to know is whether I can use some way to zero-pad the chunk-length which generated by tomcat. I don't see any way to do so via configuration, but changing the existing code would be simple. Look here: org/apache/coyote/http11/filters/ChunkedOutputFilter.java in the middle of the doWrite() method where it's filling in the chunkLength array. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Zero-pad the chunk length which generated by tomcat automatically
From: Hanks Wang (hanwan) [mailto:[EMAIL PROTECTED] Subject: RE: Zero-pad the chunk length which generated by tomcat automatically So all I want to know is whether I can use some way to zero-pad the chunk-length which generated by tomcat. I don't see any way to do so via configuration, but changing the existing code would be simple. Look here: org/apache/coyote/http11/filters/ChunkedOutputFilter.java in the middle of the doWrite() method where it's filling in the chunkLength array. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]