cURL / Mailing Lists / curl-library / Single Mail

curl-library

Fail to fetch body using curl_easy_perform

From: ³¯¬R§¡ <yuchunchen_at_gvdigital.com>
Date: Tue, 01 Sep 2009 12:27:44 +0800

Hi,

I faced a problem that I can¡¦t fetch the response body using the
curl_easy_perform.
The same code I used works well before.
But this time, although I can get the Header but the following body
can't be fetched.
(Same payload can be shown correctly using IE/Chrome/Firefox)

As my observation, it seems that if the header and body at the different
packets.
CURL can't parse the body well.
I am not sure if it is the known restriction for the CURL or my
observation is wrong.

I attached a segment of the packets I captured.
Could anyone kindly help me to figure out where the problem is?

Thanks and Best Regards,
YC

========================================================================
0000 00 1f c6 88 54 9c 00 02 d1 09 50 3a 08 00 45 00 ....T.....P:..E.
0010 00 55 87 95 40 00 40 06 1c c0 c0 a8 0a 8f c0 a8 .U..@.@.........
0020 0a 6e 00 50 12 82 42 15 4c 24 09 ae 42 7d 50 18 .n.P..B.L$..B}P.
0030 19 20 e4 70 00 00 48 54 54 50 2f 31 2e 31 20 32 . .p..HTTP/1.1 2
0040 30 30 20 4f 4b 0d 0a 43 6f 6e 74 65 6e 74 2d 74 00 OK..Content-t
0050 79 70 65 3a 20 69 6d 61 67 65 2f 6a 70 65 67 0d ype: image/jpeg.
0060 0a 0d 0a

========================================================================
0000 00 1f c6 88 54 9c 00 02 d1 09 50 3a 08 00 45 00 ....T.....P:..E.
0010 05 dc 87 96 40 00 40 06 17 38 c0 a8 0a 8f c0 a8 ....@.@..8......
0020 0a 6e 00 50 12 82 42 15 4c 51 09 ae 42 7d 50 18 .n.P..B.LQ..B}P.
0030 19 20 07 b9 00 00 ff d8 ff e2 00 0c 46 4d 5f 50 . ..........FM_P
0040 47 20 4d 6f 64 65 ff db 00 84 00 06 04 05 06 05 G Mode..........
0050 04 06 06 05 06 07 07 06 08 0a 10 0a 0a 09 09 0a ................
0060 14 0e 0f 0c 10 17 14 18 18 17 14 16 16 1a 1d 25 ...............%
0070 1f 1a 1b 23 1c 16 16 20 2c 20 23 26 27 29 2a 29 ...#... , #&')*)
0080 19 1f 2d 30 2d 28 30 25 28 29 28 01 07 07 07 0a ..-0-(0%()(.....
0090 08 0a 13 0a 0a 13 28 1a 16 1a 28 28 28 28 28 28 ......(...((((((
00a0 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 ((((((((((((((((
00b0 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 ((((((((((((((((
00c0 28 28 28 28 28 28 28 28 28 28 28 28 ff c4 01 a2 ((((((((((((....
00d0 00 00 01 05 01 01 01 01 01 01 00 00 00 00 00 00 ................
00e0 00 00 01 02 03 04 05 06 07 08 09 0a 0b 01 00 03 ................
00f0 01 01 01 01 01 01 01 01 01 00 00 00 00 00 00 01 ................
0100 02 03 04 05 06 07 08 09 0a 0b 10 00 02 01 03 03 ................
0110 02 04 03 05 05 04 04 00 00 01 7d 01 02 03 00 04 ..........}.....
0120 11 05 12 21 31 41 06 13 51 61 07 22 71 14 32 81 ...!1A..Qa."q.2.
0130 91 a1 08 23 42 b1 c1 15 52 d1 f0 24 33 62 72 82 ...#B...R..$3br.
0140 09 0a 16 17 18 19 1a 25 26 27 28 29 2a 34 35 36 .......%&'()*456
Received on 2009-09-01