1 *** /homes/qradlsg/curl-org/lib/download.c Thu Nov 11 08:57:12 1999
2 --- lib/download.c Mon Nov 22 08:33:13 1999
9 ProgressShow (data, bytecount, start, now, TRUE);
11 *bytecountp = bytecount;
16 ! if(contentlength && (bytecount != contentlength)) {
17 ! failf(data, "transfer closed with %d bytes remaining", contentlength-bytecount);
18 ! return URG_PARTIAL_FILE;
20 ProgressShow (data, bytecount, start, now, TRUE);
22 *bytecountp = bytecount;
23 *** /homes/qradlsg/curl-org/include/curl/curl.h Thu Nov 11 21:58:02 1999
24 --- include/curl/curl.h Mon Nov 22 08:33:59 1999
27 URG_FTP_CANT_GET_HOST,
28 URG_FTP_CANT_RECONNECT,
29 URG_FTP_COULDNT_SET_BINARY,
30 ! URG_FTP_PARTIAL_FILE,
31 URG_FTP_COULDNT_RETR_FILE,
35 URG_FTP_CANT_GET_HOST,
36 URG_FTP_CANT_RECONNECT,
37 URG_FTP_COULDNT_SET_BINARY,
39 URG_FTP_COULDNT_RETR_FILE,
48 + /* This is just to make older programs not break: */
49 + #define URG_FTP_PARTIAL_FILE URG_PARTIAL_FILE
51 #define URGTAG_DONE -1
52 #define URGTAG_LAST -1
54 *** /homes/qradlsg/curl-org/lib/ftp.c Sat Oct 30 17:43:25 1999
55 --- lib/ftp.c Mon Nov 22 08:34:27 1999
58 if((-1 != data->infilesize) && (data->infilesize != *bytecountp)) {
59 failf(data, "Wrote only partial file (%d out of %d bytes)",
60 *bytecountp, data->infilesize);
61 ! return URG_FTP_PARTIAL_FILE;
66 if((-1 != data->infilesize) && (data->infilesize != *bytecountp)) {
67 failf(data, "Wrote only partial file (%d out of %d bytes)",
68 *bytecountp, data->infilesize);
69 ! return URG_PARTIAL_FILE;
76 failf(data, "Offset (%d) was beyond file size (%d)",
77 data->resume_from, data->resume_from+size);
78 ! return URG_FTP_PARTIAL_FILE;
84 failf(data, "Offset (%d) was beyond file size (%d)",
85 data->resume_from, data->resume_from+size);
86 ! return URG_PARTIAL_FILE;
93 if((-1 != size) && (size != *bytecountp)) {
94 failf(data, "Received only partial file");
95 ! return URG_FTP_PARTIAL_FILE;
97 else if(0 == *bytecountp) {
98 failf(data, "No data was received!");
101 if((-1 != size) && (size != *bytecountp)) {
102 failf(data, "Received only partial file");
103 ! return URG_PARTIAL_FILE;
105 else if(0 == *bytecountp) {
106 failf(data, "No data was received!");