cURL / Mailing Lists / curl-library / Single Mail


Re: Reg:FTP upload in libcurl

From: Dan Fandrich <>
Date: Thu, 19 Jun 2008 23:18:39 -0700

On Fri, Jun 20, 2008 at 10:37:45AM +0530, wrote:
> In Connect I wont be providing the file name it is just for Connection
> But the UploadFile I sent the file name from another applciaiton
> Now is it enough that I just give the filename in the "" or should I specify
> the URL also .
> Because I am reusing the connection from Connect just need to do a file
> transfer via this call
> curl_easy_setopt(curl,CURLOPT_URL,"/tmp/test")
> Deos the above work if the connection is already made like below

The fact that it's a reused connection is completely irrelevant to the code.
CURLOPT_URL *must* be a URL. If you're uploading a file, then it must be
a URL to the file on the remote server to which you're uploading.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-20