cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to disable FTP file upload overwrite??

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 29 Jul 2008 20:02:44 +0200 (CEST)

On Tue, 29 Jul 2008, Jeff Pohlmeyer wrote:

> 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.

Nah, if he uses the same handle, server and user+password, the connection and
thus login will be re-used!

-- 
  / daniel.haxx.se
Received on 2008-07-29