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