Olaf Hering
f2ed79d8ee
docs/examples: adjust prototypes for CURLOPT_READFUNCTION
...
The type of the buffer in curl_read_callback is 'char *', not 'void *'.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Closes #6392
2020-12-30 22:20:24 +01:00
Daniel Stenberg
ac0a88fd25
copyright: fix year ranges
...
Follow-up from 4d2f800677
2020-11-05 08:22:10 +01:00
Daniel Stenberg
4d2f800677
curl.se: new home
...
Closes #6172
2020-11-04 23:59:47 +01:00
Marcel Raad
5d916944ae
examples/post-callback: use long for CURLOPT_POSTFIELDSIZE
...
Otherwise, typecheck-gcc.h warns on MinGW-w64.
2017-09-21 20:07:24 +02:00
Daniel Stenberg
12e789391d
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.
2017-09-04 11:42:00 +02:00
Marcel Raad
c23177d5e9
examples: declare TU-local variables static
...
This fixes missing-variable-declarations warnings when building with
clang.
2017-04-30 23:29:31 +02:00
Daniel Stenberg
4af40b3646
URLs: change all http:// URLs to https://
2016-02-03 00:19:02 +01:00
Daniel Stenberg
c00b18d540
examples: provide <DESC> sections
2015-07-01 11:43:12 +02:00
Yang Tse
7332a7cafb
examples: fix compilation issues - commit 23f8dca6fb
follow-up
2012-12-05 11:43:40 +01:00
Guenter Knauf
6e3802a2cf
Added error checking for curl_global_init().
2012-07-12 15:18:00 +02:00
Guenter Knauf
df5a47b819
Added curl_global_* functions.
2012-07-12 15:01:18 +02:00
Guenter Knauf
a3dbbcfd2a
Added error checking for samples.
2012-07-04 17:03:52 +02:00
Yang Tse
865893fb14
examples: fix compiler warnings
2012-04-13 17:59:49 +02:00
Daniel Stenberg
1aeb635cdd
sources: update source headers
...
All C and H files now (should) feature the proper project curl source
code header, which includes basic info, a copyright statement and some
basic disclaimers.
2011-03-10 12:04:33 +01:00
Daniel Stenberg
18e7b52e8e
examples: use example.com in example URLs
2010-10-05 15:00:19 +02:00
Daniel Stenberg
2309b4e330
remove the CVSish $Id$ lines
2010-03-24 11:02:54 +01:00
Dan Fandrich
e664cd5826
Fixed a surprising number of example programs that were passing int arguments
...
to curl_easy_setopt instead of long.
2008-05-22 21:20:07 +00:00
Daniel Stenberg
79300cdcd9
return 0 not -1 at end of data!
2008-04-12 08:35:04 +00:00
Daniel Stenberg
f3c0afa5b8
fix code that is normally #ifdef'ed out
2008-03-13 12:36:22 +00:00
Dan Fandrich
4706a93341
Fixed some more simple compile warnings in the examples.
2007-07-16 21:22:12 +00:00
Dan Fandrich
49ce3e5160
Fixed some compile warnings and errors and improved portability in the
...
examples.
Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers
any longer.
2007-07-12 21:11:10 +00:00
Daniel Stenberg
9533092511
Rene Bernhardt's corrections
2005-12-14 13:10:14 +00:00
Daniel Stenberg
e8b295ff7d
lost of more into on how to tweak some headers
2004-08-23 14:22:44 +00:00
Daniel Stenberg
821302bcf3
removed old version checks
2003-12-08 14:14:26 +00:00
Daniel Stenberg
f68219ddaa
use the newer option names
2003-12-08 14:13:19 +00:00
Daniel Stenberg
d242214e18
new example for libcurl 7.9.6 or later
2002-03-14 14:53:00 +00:00