Dan Fandrich
ffff8ddbef
Compile most of the example apps in docs/examples when doing a 'make check'.
2007-07-12 20:38:54 +00:00
Daniel Stenberg
e2bac4fe6f
add note about windows and dlls with CURLOPT_WRITEDATA
2007-07-06 20:14:03 +00:00
Daniel Stenberg
9ca688c8e7
James Bursa's improvement
2007-06-27 21:35:17 +00:00
Daniel Stenberg
8edbe262d9
fix little flaw that could make the transfer loop end prematurely
2007-06-27 21:29:29 +00:00
Daniel Stenberg
1afb67e31b
- Jeff Pohlmeyer improved the hiperfifo.c example to use the
...
CURLMOPT_TIMERFUNCTION callback option.
2007-05-02 13:52:38 +00:00
Gisle Vanem
605a391178
Added cvs id. Use TOPDIR variable. Updated CSOURCES.
...
Dependencies are now put in external file depend.dj.
2007-03-17 17:58:45 +00:00
Daniel Stenberg
c6ff612f6e
Frank Teo provided an updated, mostly docs changed
2006-11-19 21:55:34 +00:00
Daniel Stenberg
a03c76b228
ok stop using old and deprecated options
2006-11-08 08:49:27 +00:00
Yang Tse
609044aea2
Compiler warning fix
2006-10-29 21:19:23 +00:00
Daniel Stenberg
7575e6afc4
made the arrow for 'Send SSL data' point in the right direction!
2006-10-20 21:26:10 +00:00
Daniel Stenberg
f53347631e
Added comments about checking return code and the maxfd counter
2006-10-13 14:01:19 +00:00
Daniel Stenberg
4c04c09138
ghiper now uses the timer callback in the multi interface
2006-10-12 21:26:50 +00:00
Daniel Stenberg
083a84e5d0
repair id string
2006-10-10 19:48:24 +00:00
Daniel Stenberg
d5eb386d00
Added ghiper.c, Jeff Pohlmeyer's example code using the curl_multi_socket()
...
API with glib2
2006-10-10 19:46:57 +00:00
Daniel Stenberg
56fcf85ab6
slightly improved
2006-10-08 22:19:25 +00:00
Gisle Vanem
9e54d4c7d2
Use CSOURCES as other makefiles. Add line for dependency generation.
2006-09-13 13:51:03 +00:00
Daniel Stenberg
6df85adf3e
hiperfifo.c by Jeff Pohlmeyer
2006-09-12 11:25:00 +00:00
Daniel Stenberg
fb65080548
example code by Michael Wallner
2006-09-12 07:54:55 +00:00
Yang Tse
bc2f0c7dcb
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
2006-07-05 23:10:37 +00:00
Daniel Stenberg
279dd6d878
typecast the number passed to CURLOPT_INFILESIZE_LARGE as a curl_off_t
2006-06-30 10:26:26 +00:00
Daniel Stenberg
d5e9041344
The new ftpuploadresume.c example by Philip Bock
2006-05-11 22:24:44 +00:00
Daniel Stenberg
80a0b81c2a
Make this code use the proper pointers
2006-05-02 09:19:31 +00:00
Daniel Stenberg
655331a91b
new little example using the new conversion callbacks added in 7.15.4
2006-04-09 08:39:08 +00:00
Daniel Stenberg
da2c124675
Frank's synctime.c example and an updated list in README
2006-02-04 18:08:54 +00:00
Daniel Stenberg
9533092511
Rene Bernhardt's corrections
2005-12-14 13:10:14 +00:00
Daniel Stenberg
ab1f5c3edd
make it compile warning-free and free() the memory before exit
2005-10-10 20:58:18 +00:00
Daniel Stenberg
49a16f7121
Theo Borm's example, as was posted here:
...
http://curl.haxx.se/mail/lib-2005-08/0163.html
2005-08-24 17:07:27 +00:00
Daniel Stenberg
9da9d00c62
fixed example since this is how the interface works now
2005-07-28 21:51:20 +00:00
Daniel Stenberg
2236ba0d20
Peteris Krumins added CURLOPT_COOKIELIST and CURLINFO_COOKIELIST, which is a
...
simple interface to extracting and setting cookies in libcurl's internal
"cookie jar". See the new cookie_interface.c example code.
2005-07-27 22:17:14 +00:00
Daniel Stenberg
e4c0a85da0
Jeremy Brown's OpenSSL thread-locking example
2005-05-09 21:12:03 +00:00
Gisle Vanem
62082293c5
Some functions are static here, but extern in libxml's
...
SAX.h. gcc doesn't like that. Rename.
2005-02-09 15:15:01 +00:00
Daniel Stenberg
2248599ae1
fix type
2005-02-04 23:53:12 +00:00
Daniel Stenberg
ab96e2d6e9
another example
2005-02-02 19:25:49 +00:00
Daniel Stenberg
6b81cf4bc9
HTML parsing example with libtidy, by Jeff Pohlmeyer
2005-02-02 19:25:37 +00:00
Daniel Stenberg
21b4105454
somewhat nicer libcurl usage
2005-01-31 20:03:01 +00:00
Daniel Stenberg
d7648d94ca
htmltitle
2005-01-31 18:23:42 +00:00
Daniel Stenberg
883343ba63
HTML <head> parsing (with libxml) example code by Lars Nilsson.
2005-01-31 18:22:40 +00:00
Daniel Stenberg
7e42cb61f7
FTP third transfer support overhaul. See CHANGES for details.
2005-01-21 09:32:32 +00:00
Daniel Stenberg
8dd799b4bd
If you give a *_LARGE option you MUST make sure that the type of the passed-in
...
argument is a curl_off_t. If you use CURLOPT_INFILESIZE (without _LARGE) you
must make sure that to pass in a type 'long' argument. */
2005-01-20 14:24:56 +00:00
Daniel Stenberg
2fe3829e5e
add a URL to an article about making Apache support PUT
2005-01-19 10:09:15 +00:00
Gisle Vanem
f0e66d8c76
Added anyauthput.exe.
2004-11-26 15:04:15 +00:00
Daniel Stenberg
3e1caa6185
HTTP "auth done right". See lib/README.httpauth
2004-11-24 16:11:35 +00:00
Daniel Stenberg
f84d2b4d36
trying a version with URLs for all function calls
2004-11-22 16:24:46 +00:00
Daniel Stenberg
4207ef3d27
removed trailing whitespace
2004-11-22 14:41:36 +00:00
Daniel Stenberg
b3572269a4
removed unused variable and trailing whitespace
2004-11-22 14:41:24 +00:00
Daniel Stenberg
097d449cc1
remove curl_ prefix from functions not present in libcurl
2004-11-22 14:07:23 +00:00
Daniel Stenberg
7f44713487
re-indented to curl style
2004-11-22 13:48:35 +00:00
Daniel Stenberg
b7a6b78e0c
renamed curl_thread to my_thread to avoid confusion
2004-11-22 13:43:52 +00:00
Daniel Stenberg
855a9eff76
add URLs in comments for all libcurl function calls
2004-11-22 13:39:23 +00:00
Daniel Stenberg
e80f566a14
added comment for windows people about READFUNCTION being needed
2004-11-21 12:42:28 +00:00
Daniel Stenberg
87753cda49
mention the openssl callbacks for SSL multithread
2004-11-16 08:49:51 +00:00
Daniel Stenberg
186f433e40
modified to not use realloc() on a NULL pointer
2004-11-02 08:26:55 +00:00
Gisle Vanem
0bfa601a9f
Open "debugit" in binary mode ("rb").
2004-10-16 13:17:15 +00:00
Gisle Vanem
a91a75355d
*** empty log message ***
2004-10-06 13:24:08 +00:00
Daniel Stenberg
39af394a1c
removed tabs and trailing whitespace from source
2004-10-06 07:50:18 +00:00
Daniel Stenberg
d736ac51c0
stripped trailing whitespace
2004-08-23 14:22:52 +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
4a4490d5f1
debug.c is a fresh new example showing how to use the DEBUGFUNCTION to get
...
lots of fine info from a transfer
2004-08-23 14:22:26 +00:00
Daniel Stenberg
cb88135220
removed trailing whitespace, indented to curl-style levels
2004-08-12 07:01:20 +00:00
Daniel Stenberg
574e911375
Another Gisle update
2004-06-30 12:34:33 +00:00
Daniel Stenberg
c81ac51e5c
Gisle's update
2004-06-29 18:43:04 +00:00
Daniel Stenberg
2e8f37aca5
Added example of how to use the upcoming support for FTP 3rd party transfers
2004-06-03 11:15:27 +00:00
Daniel Stenberg
9e987ac6a2
getinfo.c is a new tiny example that uses curl_easy_getinfo() to get the
...
content-type after a transfer.
2004-06-03 09:20:48 +00:00
Daniel Stenberg
15cd35f67f
added example that makes an upload to a file:// url
2004-05-26 09:00:03 +00:00
Daniel Stenberg
459801d6e0
strip trailing whitespace
2004-05-26 08:58:25 +00:00
Daniel Stenberg
88229a0f2a
new example proving that the debug callback works even when the multi
...
interface is used
2004-05-24 15:16:53 +00:00
Daniel Stenberg
120394cc45
remove trailing whitespace
2004-05-24 15:16:29 +00:00
Daniel Stenberg
1adfe0fe18
multi interface, debug callback
2004-05-24 15:12:37 +00:00
Daniel Stenberg
a94e117ede
language!
2004-05-19 09:09:31 +00:00
Daniel Stenberg
662cb30372
Set CURLOPT_USERAGENT too
2004-05-19 09:08:19 +00:00
Daniel Stenberg
47d52d4eca
added https.c
2004-05-13 08:23:09 +00:00
Daniel Stenberg
4973b0f88a
basic https fetching script
2004-05-13 08:22:40 +00:00
Daniel Stenberg
9d99af5329
if select returns -1, bail out of the loop
2004-04-02 06:40:31 +00:00
Daniel Stenberg
6b33a5f954
use the correct struct
2004-03-28 21:41:10 +00:00
Daniel Stenberg
7f679c3da3
Ken Rastatter's fixes to improve portability of this example:
...
These minor changes remove portability issues with the this example and allow
it to run on Win32. Specifically:
* The use of pthread_create() has been replaced by g_thread_create(). This
removes the dependency on the pthreads library. Since this is an example using
GTK+, g_thread_create() is available as it is a part of glibc.
* The CURLOPT_FILE option is now referred to by its "newer name"
CURLOPT_WRITEDATA.
* The use of CURLOPT_WRITEFUNCTION has been added. As described in the docs,
this avoids the crashes when using a DLL under Win32.
* The output file has been renamed from "/tmp/test.curl" to "test.curl". It's
unlikely that there is a /tmp when in Win32 and other examples in libcurl
write their output files to the working directory.
2004-02-09 07:12:33 +00:00
Daniel Stenberg
b60e0fa97e
David J Meyer's large file support.
2004-01-05 22:29:29 +00:00
Daniel Stenberg
36a2fac79f
typecast the size to long for platforms where st_size is off_t
2003-12-18 18:05:10 +00:00
Daniel Stenberg
f4e987cd19
clarified the URL part based on the problems Martin Hilpert had
2003-12-18 07:52:31 +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
cc48658564
cut off old crappy win32 comments and use the proper global_init instead
...
also removed very old "require libcurl older than blablabla"
2003-11-19 08:21:34 +00:00
Daniel Stenberg
79e4aee185
cleaned up
2003-11-19 08:20:13 +00:00
Daniel Stenberg
4d28012468
remove the wrong win32 comment and use global_init
2003-11-19 08:19:20 +00:00
Daniel Stenberg
24836d30f5
Peter Sylvester's curlx.c code example added
2003-10-03 13:46:27 +00:00
Daniel Stenberg
a95df8246b
Henrik Storner's rewrite that includes a nice usage of curl_multi_info_read()
2003-08-28 11:21:14 +00:00
Daniel Stenberg
d3b81ea3f7
Vincent Sanders's massive update of this example code. One could argue
...
weather this is still an "example" or a whole new API layer! ;-)
2003-08-11 21:34:52 +00:00
Daniel Stenberg
d5043133e6
Gisle Vanem made curl build with djgpp on DOS.
2003-05-21 08:08:48 +00:00
Daniel Stenberg
662c659220
missing semicolon, by Gisle Vanem
2003-05-20 12:44:55 +00:00
Daniel Stenberg
5334a58f9b
Andy Cedilnik's corrections
2003-03-17 12:38:08 +00:00
Daniel Stenberg
ebe5191b63
no the data is not freed, this is left for the app to do when needed
2003-03-10 17:01:11 +00:00
Daniel Stenberg
173b35eaf8
made it work
...
made it cause less compiler warnings
made it require 7.9.7 to build
2003-01-27 10:25:20 +00:00
Daniel Stenberg
cc09e9d4c2
fix
2003-01-09 11:43:08 +00:00
Daniel Stenberg
16e0da2c4b
call curl_multi_perform() correctly
2003-01-09 11:42:07 +00:00
Daniel Stenberg
a39cdc80b7
Jeff pointed out this flaw in the example
2002-12-03 12:34:43 +00:00
Daniel Stenberg
9e1123debe
don't use curl.haxx.se
2002-11-22 07:39:15 +00:00
Daniel Stenberg
c7d517f6d2
re-order the compiler arguments to keep more compiler happy
2002-08-14 23:01:14 +00:00
Daniel Stenberg
c74cb59e08
added comment about CURLOPT_WRITEDATA for directing contents somewhere
2002-08-12 11:36:48 +00:00
Daniel Stenberg
b5dd257427
makes things better
2002-08-08 23:05:50 +00:00
Daniel Stenberg
b9f8e80b14
removed the php/examples reference as that dir is not in the archives
2002-06-19 12:37:02 +00:00
Daniel Stenberg
b79e250ed2
simplified the compile line even more
2002-06-19 12:31:49 +00:00
Daniel Stenberg
fc5c9d8f17
simplepost.c shows a simple POST ;-)
2002-06-19 12:30:12 +00:00
Daniel Stenberg
5215f6f654
we don't need win32sockets.c anymore, we support this internally
2002-05-13 07:29:22 +00:00
Daniel Stenberg
1913b4eeed
fopen.c added, a fopen() style emulation for URL reading
2002-05-13 07:28:10 +00:00
Daniel Stenberg
3bbf694d5a
Added multi-post.c, based on the source file posted by Gustaf Hui
2002-05-06 13:38:28 +00:00
Daniel Stenberg
c560327f26
Added the three multi interface source code examples to the distrib
2002-03-19 14:01:34 +00:00
Daniel Stenberg
28939dd45c
fixed include and added header
2002-03-19 14:00:47 +00:00
Daniel Stenberg
d242214e18
new example for libcurl 7.9.6 or later
2002-03-14 14:53:00 +00:00
Daniel Stenberg
6417fa95cf
corrected the use of the progress function
2002-03-11 15:00:57 +00:00
Daniel Stenberg
9fc62a8dd0
multi interface using examples
2002-03-04 10:15:44 +00:00
Daniel Stenberg
a2b19c9a63
postit.c is removed, it used the deprecated curl_formparse() and may
...
encourage people to use bad functions
2002-01-25 10:07:07 +00:00
Daniel Stenberg
12cdfd282d
added a comment about this example only works with 7.9.3 and newer libs
2002-01-17 13:45:19 +00:00
Daniel Stenberg
ea811fee52
added a somewhat cool single-line command that builds most example sources
...
on unix-like systems
2002-01-16 14:13:54 +00:00
Daniel Stenberg
e4866563de
Gtz Babin-Ebell updated with some new 7.9.3 features
2002-01-13 11:32:36 +00:00
Daniel Stenberg
affe334675
added http-post.c
2002-01-10 09:00:02 +00:00
Daniel Stenberg
bec0ebacf1
bad comment begone
2002-01-09 13:23:01 +00:00
Daniel Stenberg
5bd6d631c6
cut off argc and argv as well
2002-01-09 13:22:31 +00:00
Daniel Stenberg
fd1799f3bb
Cleaned up this example to make it even simpler.
2002-01-09 13:22:03 +00:00
Daniel Stenberg
0b1197936c
I made the write callback create the file the first time it gets called so
...
that it won't create an empty file if the remote file doesn't exist
2002-01-08 13:05:44 +00:00
Daniel Stenberg
ea9a88a9b8
another example source added
2002-01-08 08:26:22 +00:00
Daniel Stenberg
aec7358ca4
7.9.3 pre-release commit
2002-01-08 08:25:44 +00:00
Daniel Stenberg
226fe8bdf9
Gtz Babin-Ebell's contributed "simplessl.c" example source code
2001-12-18 10:13:41 +00:00
Daniel Stenberg
d5001a3f0b
Added httpput.c
2001-09-25 05:55:56 +00:00
Daniel Stenberg
b6526af442
added ftpupload.c
2001-08-29 07:12:04 +00:00
Daniel Stenberg
56e8d073bf
curl_formadd() using example, the 7.9 style of building rfc1867 form posts
2001-08-23 08:45:20 +00:00
Daniel Stenberg
08655d8d5d
Georg Huettenegger's patch curl-7.8.1-pre5-patch-20010819
2001-08-21 13:18:07 +00:00
Sterling Hughes
f0efa89484
Leftover -- add a note about this in the examples file :)
2001-07-12 02:00:24 +00:00
Daniel Stenberg
9646a8b346
removed static, removed curl special return type, added include windows.h
2001-06-29 11:33:00 +00:00
Daniel Stenberg
3ab3be1b6e
Added getinmemory.c
2001-05-15 13:08:23 +00:00
Daniel Stenberg
3ceb2bcbb9
this might actually compile too...
2001-05-15 13:04:53 +00:00
Daniel Stenberg
2457a31948
an example on how you can use the write callback to receive data in a memory
...
chunk
2001-05-15 13:03:53 +00:00
Daniel Stenberg
9e1e318691
We need -lpthread for the pthread example
2001-05-15 12:56:38 +00:00
Daniel Stenberg
e1132ecbe6
corrected
2001-05-15 12:55:35 +00:00
Daniel Stenberg
4127903183
Added multithread.c
2001-05-04 09:35:55 +00:00
Daniel Stenberg
2ffc20dc7c
example using multiple threads to get URLs
2001-05-04 09:35:43 +00:00
Daniel Stenberg
73982c65d2
fixed the EXTRA_DIST line
2001-05-03 09:10:07 +00:00
Daniel Stenberg
b86674174a
Added text about curl.haxx.se not being a good test target for people's
...
libcurl experiments...
2001-04-12 11:13:28 +00:00
Daniel Stenberg
45ffb16c2a
Added a line about the new makefile example
2001-03-27 09:10:53 +00:00
Daniel Stenberg
0b8b0b7c86
Added Makefile.example as an example makefile that can build the example
...
source files (if edited slightly)
2001-03-27 09:09:09 +00:00
Daniel Stenberg
053bf49bd2
Added ftpget.c just to show that it is exactly as easy to get FTP files
2001-03-27 09:00:18 +00:00
Daniel Stenberg
721f9bca84
moved to ../../php/examples/
2001-03-16 13:45:42 +00:00
Daniel Stenberg
ad4d5fabf8
the PHP examples are moved
2001-03-16 13:44:57 +00:00
Daniel Stenberg
9479ac6dda
Added a persistant connection example
2001-03-05 16:56:10 +00:00
Daniel Stenberg
e2590430c5
removed the #ifdef
2001-02-20 13:57:50 +00:00
Daniel Stenberg
ada9bc2b24
win32sockets.c is now added with winsock init/cleanup example functions
2001-02-20 13:56:38 +00:00
Daniel Stenberg
43da41e73e
Added three tiny PHP examples
2001-02-19 13:39:21 +00:00
Daniel Stenberg
720fa45b56
blurb about different languages and environments added
2001-02-19 13:38:29 +00:00
Daniel Stenberg
7de874c438
just a few PHP/curl examples
2001-02-19 13:38:05 +00:00
Daniel Stenberg
3c7a80a275
postit.c was added as a HTML form file upload example
2001-02-08 08:26:54 +00:00
Daniel Stenberg
803005892c
mostly a dummy
2001-01-08 14:36:34 +00:00
Daniel Stenberg
e7736324b4
David Odin (aka DindinX) for MandrakeSoft, tiny example with GTK
2000-11-03 14:47:07 +00:00
Daniel Stenberg
35aa363587
new libcurl example code stuff
2000-09-20 22:32:08 +00:00