Re: State of things for release?
Date: Wed, 30 Jul 2008 14:17:36 -0500
Dan Fandrich wrote:
> Simply put, do a complete ftp transaction with CURLOPT_NOBODY set to 1 to
> check the existence of the file, check the error code, then do a new one
> (with the same handle) with CURLOPT_NOBODY set to 0 to actually transfer
> the file.
I just tried it here, and it looks like CURLOPT_NOBODY
returns CURLE_OK even if the file doesn't exist, even
when CURLOPT_FAILONERROR is set. I also tried testing
the CURLINFO_RESPONSE_CODE and I am getting 350 in
either case, libcurl still sends REST even after a 550
response to SIZE. This was just a quick test, maybe I got
int main(int argc, char*argv)
printf("rv=%d resp=%d\n", rv, resp);
Received on 2008-07-30