cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: How to disable FTP file upload overwrite??

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 29 Jul 2008 06:14:51 -0500

Mohun Biswas wrote:
> Tiago Conceição wrote:

>> thanks, and how can i do a clean/fast file exist check?

> The answer is access() or stat(). But at this point you're drifting well
> beyond libcurl and into basic programming issues which are better
> addressed elsewhere.

No, I think he wants to check the existence of
the remote file, not a local one. Probably the
easiest answer is to do a CURLOPT_NOBODY request
first and check the return value/response code.
But unfornately, for FTP that means going through
the login process twice.

 - Jeff
Received on 2008-07-29

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET