cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: State of things for release?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 30 Jul 2008 11:15:44 -0700

On Wed, Jul 30, 2008 at 04:33:09PM +0000, Tiago Conceição wrote:
> I have tryed many things but no work :(
> also i have tryed with 2 connections (call ftpExist and ftpUpload function)
> I just dont know how to make it in 1 connection and 2 request, im new with
> libcurl
> anyone can post a sample how to do it?

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.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-30