cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: strange curl error with ftp transfers /goin' crazy

From: Guenter Knauf <eflash_at_gmx.net>
Date: Fri, 15 Jun 2007 11:54:14 +0200

Hi Daniel,
> Possibly, using --trace-ascii using 7.15.5 compared to 7.16.2 will show you
> how the callback gets data differenly and it might offer some clue. But if
> the zero is appended last, it sounds as if just the final call to the
> callback provides the wrong size?
did that - the first part of trace output is absolutely identical, so here's what different:

cURL 7.15.6-CVS:
================
0000: 150 Opening data connection for test.bin (123.45.67.89,65534)
== Info: Getting file with size: 512
<= Recv data, 512 bytes (0x200)
0000: ................................ !"#$%&'()*+,-./0123456789:;<=>?
0040: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
0080: ................................................................
00c0: ................................................................
0100: ................................ !"#$%&'()*+,-./0123456789:;<=>?
0140: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
0180: ................................................................
01c0: ................................................................
== Info: Remembering we are in dir test.org/htdocs/
<= Recv header, 23 bytes (0x17)
0000: 226 Transfer Complete
== Info: Connection #0 to host www.test.org left intact
=> Send header, 6 bytes (0x6)
0000: QUIT
<= Recv header, 21 bytes (0x15)
0000: 221 Closing Session
== Info: Closing connection #0
##########################################################################
cURL 7.16.2:
================
0000: 150 Opening data connection for test.bin (123.45.67.89,65534)
== Info: Maxdownload = -1
== Info: Getting file with size: 512
<= Recv data, 512 bytes (0x200)
0000: ................................ !"#$%&'()*+,-./0123456789:;<=>?
0040: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
0080: ................................................................
00c0: ................................................................
0100: ................................ !"#$%&'()*+,-./0123456789:;<=>?
0140: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
0180: ................................................................
01c0: ................................................................
<= Recv data, 1 bytes (0x1)
0000: .
== Info: transfer closed with -1 bytes remaining to read
== Info: Received only partial file: 513 bytes
== Info: Closing connection #0

Guen.
Received on 2007-06-15