aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/httpput.c
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 /docs/examples/httpput.c
parent7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff)
use the newer option names
Diffstat (limited to 'docs/examples/httpput.c')
-rw-r--r--docs/examples/httpput.c2
1 files changed, 1 insertions, 1 deletions
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);