| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
RE: Help required...
From: Nielsen Linus <Linus.Nielsen_at_elema.siemens.se>
Date: Wed, 4 Jul 2001 13:05:46 +0200
> Hey Nielsen,
Psst! It's "Linus". :-)
> TQ 4 yr speedy reply,
Always on my toes... :-)
> I shall look into the MSDN pages for Dll creation..
Great!
> Nielsen, what changes do we have to make to ftpget.c to
You are close. First, you have to open the file for reading
ftpfile = fopen("myfile", "rb"); /* b is binary for win */
Then you have to include the file name in the URL:
curl_easy_setopt(curl, CURLOPT_URL, "ftp://[host]/[dir]/[filename]");
Unless you are uploading anonymously, you have to set the
Then the rest of the stuff:
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
Shazam!
One caveat, though. If you have built libcurl as a DLL, you have to
/Linus
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info