cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Reg:FTP upload in libcurl

From: <nagarajan.sreenivasan_at_wipro.com>
Date: Fri, 20 Jun 2008 12:18:23 +0530

Hi

Then how is it possible to

connect in one funtion and Upload in another function which uses the
connection but doesn't know what the URL is
As the Object just calls the function UploadFile()

Thanks &
Regards
Nagarajan

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Friday, June 20, 2008 11:49 AM
To: curl-library_at_cool.haxx.se
Subject: Re: Reg:FTP upload in libcurl

On Fri, Jun 20, 2008 at 10:37:45AM +0530,
nagarajan.sreenivasan_at_wipro.com 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

-- 
http://www.MoveAnnouncer.com              The web change of address
service
          Let webmasters know that your web site has moved
Please do not print this email unless it is absolutely necessary. 
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 
www.wipro.com
Received on 2008-06-20