aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/post-callback.c
diff options
context:
space:
mode:
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);