cURL / Mailing Lists / curl-library / Single Mail

curl-library

"Received problem 2 in the chunky parser" Error ?

From: Dobromir Velev <diadomraz_at_gmail.com>
Date: Wed, 5 Apr 2006 20:49:09 +0300

Hi,
I've run into a strange error when trying to open a chunked page on a Rapid
Logic server. The page opens fine on other browsers or when curl is forced to
use HTTP/1.0.

Any ideas?

Dobromir Velev

Here is a trace dump of the transferred data.

== Info: About to connect() to 69.38.186.193 port 80
== Info: Trying 69.38.186.193... == Info: connected
== Info: Connected to 69.38.186.193 (69.38.186.193) port 80
=> Send header, 138 bytes (0x8a)
0000: 47 45 54 20 2f 20 48 54 54 50 2f 31 2e 31 0d 0a GET / HTTP/1.1..
0010: 55 73 65 72 2d 41 67 65 6e 74 3a 20 63 75 72 6c User-Agent: curl
0020: 2f 37 2e 31 35 2e 30 20 28 69 36 38 36 2d 70 63 /7.15.0 (i686-pc
0030: 2d 6c 69 6e 75 78 2d 67 6e 75 29 20 6c 69 62 63 -linux-gnu) libc
0040: 75 72 6c 2f 37 2e 31 35 2e 30 20 4f 70 65 6e 53 url/7.15.0 OpenS
0050: 53 4c 2f 30 2e 39 2e 37 61 20 7a 6c 69 62 2f 31 SL/0.9.7a zlib/1
0060: 2e 31 2e 34 0d 0a 48 6f 73 74 3a 20 36 39 2e 33 .1.4..Host: 69.3
0070: 38 2e 31 38 36 2e 31 39 33 0d 0a 41 63 63 65 70 8.186.193..Accep
0080: 74 3a 20 2a 2f 2a 0d 0a 0d 0a t: */*....
<= Recv header, 17 bytes (0x11)
0000: 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK.
0010: 0a .
<= Recv header, 25 bytes (0x19)
0000: 53 65 72 76 65 72 3a 20 52 61 70 69 64 20 4c 6f Server: Rapid Lo
0010: 67 69 63 2f 31 2e 31 0d 0a gic/1.1..
<= Recv header, 19 bytes (0x13)
0000: 4d 49 4d 45 2d 76 65 72 73 69 6f 6e 3a 20 31 2e MIME-version: 1.
0010: 30 0d 0a 0..
<= Recv header, 36 bytes (0x24)
0000: 44 61 74 65 3a 20 46 72 69 20 4a 61 6e 20 20 32 Date: Fri Jan 2
0010: 20 32 31 3a 35 39 3a 34 31 20 31 39 37 30 20 47 21:59:41 1970 G
0020: 4d 54 0d 0a MT..
<= Recv header, 25 bytes (0x19)
0000: 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 Content-Type: te
0010: 78 74 2f 68 74 6d 6c 0d 0a xt/html..
<= Recv header, 28 bytes (0x1c)
0000: 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69 6e Transfer-Encodin
0010: 67 3a 20 63 68 75 6e 6b 65 64 0d 0a g: chunked..
<= Recv header, 43 bytes (0x2b)
0000: 53 65 74 2d 43 6f 6f 6b 69 65 3a 20 61 75 74 68 Set-Cookie: auth
0010: 3d 34 32 64 38 36 32 39 62 30 30 30 32 38 36 63 =42d8629b000286c
0020: 64 3b 20 70 61 74 68 3d 2f 0d 0a d; path=/..
<= Recv data, 314 bytes (0x13a)
0000: 3c 68 74 6d 6c 3e 0d 0a 3c 68 65 61 64 3e 0d 0a <html>..<head>..
0010: 3c 74 69 74 6c 65 3e 4c 6f 67 20 4f 6e 3c 2f 74 <title>Log On</t
0020: 69 74 6c 65 3e 0d 0a 0d 0a 3c 73 63 72 69 70 74 itle>....<script
0030: 20 6c 61 6e 67 75 61 67 65 3d 22 4a 61 76 61 53 language="JavaS
0040: 63 72 69 70 74 22 3e 0d 0a 0d 0a 69 66 20 28 77 cript">....if (w
0050: 69 6e 64 6f 77 2e 66 6f 63 75 73 29 20 73 65 6c indow.focus) sel
0060: 66 2e 66 6f 63 75 73 28 29 3b 0d 0a 0d 0a 66 75 f.focus();....fu
0070: 6e 63 74 69 6f 6e 20 6f 70 65 6e 41 6e 79 57 69 nction openAnyWi
0080: 6e 64 6f 77 28 75 72 6c 2c 20 6e 61 6d 65 29 20 ndow(url, name)
0090: 7b 0d 0a 20 20 76 61 72 20 6c 20 3d 20 6f 70 65 {.. var l = ope
00a0: 6e 41 6e 79 57 69 6e 64 6f 77 2e 61 72 67 75 6d nAnyWindow.argum
00b0: 65 6e 74 73 2e 6c 65 6e 67 74 68 3b 0d 0a 20 20 ents.length;..
00c0: 76 61 72 20 77 20 3d 20 22 22 3b 0d 0a 20 20 76 var w = "";.. v
00d0: 61 72 20 68 20 3d 20 22 22 3b 0d 0a 20 20 76 61 ar h = "";.. va
00e0: 72 20 66 65 61 74 75 72 65 73 20 3d 20 22 22 3b r features = "";
00f0: 0d 0a 20 20 66 6f 72 20 28 69 3d 32 3b 20 69 3c .. for (i=2; i<
0100: 6c 3b 20 69 2b 2b 29 20 7b 0d 0a 20 20 20 20 76 l; i++) {.. v
0110: 61 72 20 70 61 72 61 6d 20 3d 20 6f 70 65 6e 41 ar param = openA
0120: 6e 79 57 69 6e 64 6f 77 2e 61 72 67 75 6d 65 6e nyWindow.argumen
0130: 74 73 5b 69 5d 3b 0d 0a 20 20 ts[i];..
== Info: Received problem 2 in the chunky parser
== Info: Closing connection #0
Received on 2006-04-05