{sigh} More from Miss Files' desk.  Acked.
----- Forwarded message from Emmanuel Gardette <[EMAIL PROTECTED]> -----

From: "Emmanuel Gardette" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Ben Commault HTTV" <[EMAIL PROTECTED]>
Subject: Chunk size & RFC
Date: Wed, 18 Apr 2001 17:04:54 +0200

Hello,

I'm a French student and I'm looking for some answer about the size of
chunks in Apache's responses to requests.  Indeed, I'm sending a GET
request on a php3 file hosted by my Apache Server, which respond with
a "Encoding-type : chunked" message.  The size of the file is small
(<256bytes), and the response fits in a single chunk.

But the client I use can't read it : The Apache Server keeps adding
spaces after the "chunk-size" slot.  In fact, my client must follow
the Http RFC2068, and can't read spaces after a chunk-size (waiting
for ";" or "CRLF").  The interesting thing is that the Server seems to
write 3 chars in this slot everytime he sends a response, even if the
message is shorter.

So my client can work for response between 256 and 4095 bytes, what is
not enough for an application I'm trying to build.  I've been trying
to configure Apache so that the problem disappears, but I haven't
found any good configuration yet.

Could you give me a solution...?
I'm enclosing samples : the most simple php page I could GET, and the
Http response from the server.

PHP PAGE : 
<HTML>
  <BODY>
<?php
        echo "variables recues: X1=".$x1." et X2=".$x2;
?> 
</BODY>
</HTML>

SERVER'S RESPONSE : 
00000030                    48 54 54 50 2F 31 2E 31 20 32                   HTTP/1.1.2
00000040  30 30 20 4F 4B 0D 0A 44 61 74 65 3A 20 57 65 64     00.OK..Date:.Wed
00000050  2C 20 31 38 20 41 70 72 20 32 30 30 31 20 31 30       ,.18.Apr.2001.10
00000060  3A 33 35 3A 31 30 20 47 4D 54 0D 0A 53 65 72 76     :35:10.GMT..Serv
00000070  65 72 3A 20 41 70 61 63 68 65 2F 31 2E 33 2E 36       er:.Apache/1.3.6
00000080  20 28 55 6E 69 78 29 0D 0A 54 72 61 6E 73 66 65     .(Unix)..Transfe
00000090  72 2D 45 6E 63 6F 64 69 6E 67 3A 20 63 68 75 6E     r-Encoding:.chun
000000A0  6B 65 64 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70     ked..Content-Typ
000000B0  65 3A 20 74 65 78 74 2F 68 74 6D 6C 0D 0A 0D 0A     e:.text/html....
000000C0  37 38 20 0D 0A 0A 3C 48 54 4D 4C 3E 0A 0A 20 20     78....<HTML>....     -> 
Adding a space... 
000000D0  3C 48 45 41 44 3E 0A 20 20 20 20 3C 54 49 54 4C     <HEAD>.....<TITL
000000E0  45 3E 20 48 54 54 56 20 3C 2F 54 49 54 4C 45 3E     E>.HTTV.</TITLE>
000000F0  0A 20 20 3C 2F 48 45 41 44 3E 0A 20 20 0A 20 20     ...</HEAD>......
00000100  0A 20 20 3C 42 4F 44 59 3E 0A 0A 76 61 72 69 61     ...<BODY>..varia
00000110  62 6C 65 73 20 72 65 63 75 65 73 3A 20 58 31 3D     bles.recues:.X1=
00000120  33 34 20 65 74 20 58 32 3D 36 35 20 20 3C 2F 42     34.et.X2=65..</B
00000130  4F 44 59 3E 0A 0A 3C 2F 48 54 4D 4C 3E 0D 0A 30     ODY>..</HTML>..0
00000140  0D 0A 0D 0A                                     ....            

Thank you very much for any help you could bring me... I'm deep in despear.
Manu


----- End forwarded message -----

-- 
#ken    P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"

Reply via email to