aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-08 14:13:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-08 14:13:19 +0000
commitf68219ddaab9dab05a195a6fd126b4edb5ecccdc (patch)
treee80e2c7b14185d28b9b7ea246628a364cb452896
parent7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff)
use the newer option names
-rw-r--r--docs/examples/fopen.c2
-rw-r--r--docs/examples/ftpget.c2
-rw-r--r--docs/examples/ftpgetresp.c2
-rw-r--r--docs/examples/ftpupload.c2
-rw-r--r--docs/examples/getinmemory.c2
-rw-r--r--docs/examples/httpput.c2
-rw-r--r--docs/examples/post-callback.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/docs/examples/fopen.c b/docs/examples/fopen.c
index 452995bc3..272c1ad87 100644
--- a/docs/examples/fopen.c
+++ b/docs/examples/fopen.c
@@ -236,7 +236,7 @@ url_fopen(char *url,const char *operation)
file->handle.curl = curl_easy_init();
curl_easy_setopt(file->handle.curl, CURLOPT_URL, url);
- curl_easy_setopt(file->handle.curl, CURLOPT_FILE, file);
+ curl_easy_setopt(file->handle.curl, CURLOPT_WRITEDATA, file);
curl_easy_setopt(file->handle.curl, CURLOPT_VERBOSE, FALSE);
curl_easy_setopt(file->handle.curl, CURLOPT_WRITEFUNCTION, write_callback);
diff --git a/docs/examples/ftpget.c b/docs/examples/ftpget.c
index 6d728c6ec..2c2275fa5 100644
--- a/docs/examples/ftpget.c
+++ b/docs/examples/ftpget.c
@@ -58,7 +58,7 @@ int main(void)
/* Define our callback to get called when there's data to be written */
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
/* Set a pointer to our struct to pass to the callback */
- curl_easy_setopt(curl, CURLOPT_FILE, &ftpfile);
+ curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
/* Switch on full protocol/debug output */
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
diff --git a/docs/examples/ftpgetresp.c b/docs/examples/ftpgetresp.c
index eb56e19d2..82b1d36a7 100644
--- a/docs/examples/ftpgetresp.c
+++ b/docs/examples/ftpgetresp.c
@@ -45,7 +45,7 @@ int main(int argc, char **argv)
if(curl) {
/* Get a file listing from sunet */
curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.sunet.se/");
- curl_easy_setopt(curl, CURLOPT_FILE, ftpfile);
+ curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile);
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile);
res = curl_easy_perform(curl);
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);
diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c
index e45beb070..f7e27460f 100644
--- a/docs/examples/getinmemory.c
+++ b/docs/examples/getinmemory.c
@@ -60,7 +60,7 @@ int main(int argc, char **argv)
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
/* we pass our 'chunk' struct to the callback function */
- curl_easy_setopt(curl_handle, CURLOPT_FILE, (void *)&chunk);
+ curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);
/* get it! */
curl_easy_perform(curl_handle);
diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c
index 78275c40a..983e60240 100644
--- a/docs/examples/httpput.c
+++ b/docs/examples/httpput.c
@@ -82,7 +82,7 @@ int main(int argc, char **argv)
curl_easy_setopt(curl,CURLOPT_URL, url);
/* 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);
diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c
index d4664a575..eda878677 100644
--- a/docs/examples/post-callback.c
+++ b/docs/examples/post-callback.c
@@ -74,7 +74,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- curl_easy_setopt(curl, CURLOPT_INFILE, &pooh);
+ curl_easy_setopt(curl, CURLOPT_READDATA, &pooh);
/* get verbose debug output please */
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);