]> git.ipfire.org Git - thirdparty/curl.git/commit
examples/post-callback: stop returning one byte at a time
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Sep 2017 09:39:59 +0000 (11:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Sep 2017 09:42:00 +0000 (11:42 +0200)
commit12e789391de425cc881c19b4fa0a0c6cdee796f4
treeb9ca5c9bf8ecece92cf9f845dc0e58a34241e633
parentb081f2ada6f00a7ab82bf325ba5e6c43fca2c3bd
examples/post-callback: stop returning one byte at a time

... since people copy and paste code from this example and thus they get
an inefficient POST operation without a good reason and sometimes
without understanding why.

Instead this now returns as much data as possible.
docs/examples/post-callback.c