diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
commit | f68219ddaab9dab05a195a6fd126b4edb5ecccdc (patch) | |
tree | e80e2c7b14185d28b9b7ea246628a364cb452896 /docs/examples/ftpupload.c | |
parent | 7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff) | |
download | curl-f68219ddaab9dab05a195a6fd126b4edb5ecccdc.tar.gz |
use the newer option names
Diffstat (limited to 'docs/examples/ftpupload.c')
-rw-r--r-- | docs/examples/ftpupload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index dee44c4ab..2ac874537 100644 --- a/docs/examples/ftpupload.c +++ b/docs/examples/ftpupload.c @@ -70,7 +70,7 @@ int main(int argc, char **argv) curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist); /* now specify which file to upload */ - curl_easy_setopt(curl, CURLOPT_INFILE, hd_src); + curl_easy_setopt(curl, CURLOPT_READDATA, hd_src); /* and give the size of the upload (optional) */ curl_easy_setopt(curl, CURLOPT_INFILESIZE, file_info.st_size); |