Hmm, it seems things are worse than I thought. Resuming a failed download from an FTP server suffers the same problem:
[22:09:10]RECV: 213 3756181504
[22:09:10]SEND: PORT 192,168,0,51,211,182
[22:09:10]RECV: 200 Data port set
[22:09:10]SEND: REST -2015472530
[22:09:10]RECV: 501 Illegal value `-2015472530' for file offset: less than zero
Hmm, it seems things are worse than I thought. Resuming a failed download from an FTP server suffers the same problem:
[22:09:10]RECV: 213 3756181504 0,51,211, 182
[22:09:10]SEND: PORT 192,168,
[22:09:10]RECV: 200 Data port set
[22:09:10]SEND: REST -2015472530
[22:09:10]RECV: 501 Illegal value `-2015472530' for file offset: less than zero