cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Trying to download and remove files from server via vb.net-needhelp

From: Wayne Phares <lists_at_waynesplace.com>
Date: Wed, 2 Jul 2008 21:00:56 -0500

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "libcurl development" <curl-library_at_cool.haxx.se>
Sent: Wednesday, July 02, 2008 2:55 PM
Subject: Re: Trying to download and remove files from server via
vb.net-needhelp

> On Wed, 2 Jul 2008, Wayne Phares wrote:
>
>> What about when I keep the sleep and add the QUOTE command to issue
>> the DELE's...why does it then start failing on every single file? I
>> must not be closing someting or reseting something and getting the
>> connection into a strange state, opening a new connection each time
>> would likely increase the download time significantly...why does the
>> Quote/Slist create an inabaility to download any more files?
>
> Now that's hard to tell but I don't think this is an actual libcurl
> flaw. Can you check the exact protocol exchange between libcurl and
> the server to see what goes wrong on the transfer after you do the
> DELE?
>
> --
>
> / daniel.haxx.se

I just stepped through this again with verbose/debug cranked up all the
way...here is what it does:

- Downloads the first file fine (lets call it image01.png)
- Then issues a DELE via the slist/QUOTE command to remove pb002429.png,
works fine. (250 DELE command successful)
- Then tries to download a file named "dummy" that does not exist,
needed a fake call to get the QUOTE to fire (could this be related?) and
fails (550 dummy: No such file or directory)
- Then issues a DELE via the slist/QUOTE command to remove pb002429.htm
(is a flag so dont want to do both at the same time), works fine. (250
DELE command successful)
- Then tries to download a file named "dummy" again that does not exist,
needed a fake call to get the QUOTE to fire (could this be related?) and
fails (550 dummy: No such file or directory)
- The goes back to the to of the loop (I have NOT issuesd a
.cleanup/.globalcleanup yet) to get the second file name, gets it and
starts to download it according to the debuging:
150 Opening BINARY mode data connection for pb002429.png (143785 bytes)
Getting file with size: 143785
Progress: 143785 0 0 0
Progress: 143785 0 0 0
...stays in Progress loop forever and never increases in size
downloaded...

Not sure how to get more out of it in terms of seeing what it happening
different between file1 request and file2 request. Appears that it must
be becuase of the DELE's since if I skip them it works fine. How can I
troubleshoot this more?

Thx - Wayne.
Received on 2008-07-03