Yang Tse
865893fb14
examples: fix compiler warnings
2012-04-13 17:59:49 +02:00
Yang Tse
21423497ef
configure: Windows cross-compilation fixes
...
BUILDING_LIBCURL and CURL_STATICLIB are no longer defined in curl_config.h,
configure will generate appropriate conditionals so that mentioned symbols
get defined and used in Makefiles at compilation time
2012-04-09 21:24:16 +02:00
Dan Fandrich
5d7a319a55
examples: updated README with two new example programs
2012-01-20 22:44:59 -08:00
Daniel Stenberg
21401840fa
url2file: new simple example
...
Just showing how to download the contents of a given URL into a local
file.
Based on a suggestion and example code by Georg Potthast
2012-01-16 14:47:00 +01:00
Daniel Stenberg
e3e24e5b36
imap.c: a dead simple imap example
...
Just to show that IMAP is used just like other protocols
2012-01-16 14:47:00 +01:00
Peter Sylvester
81524cbfa0
OpenSSL: remove reference to openssl internal struct
...
With this change, curl compiles with the new OPENSSL_NO_SSL_INTERN
cflag. This flag might become the default in some distant future.
2012-01-04 23:02:36 +01:00
Alessandro Ghedini
90343c76c6
examples: update README, Makefile.inc and gitignore with pop3s examples
2011-12-30 15:30:11 +01:00
Alessandro Ghedini
ecd75e8cb8
examples: add a couple of simple pop3s examples
...
These examples show how to fetch a single message (RETR command) and how to
list all the messages in a given mailbox (LIST command), with authentication
via SSL.
They were both based on the https.c example.
2011-12-30 15:30:11 +01:00
Yang Tse
ed0364343d
removed trailing whitespace
2011-12-30 03:36:18 +01:00
Dan Fandrich
46724b87b7
Added some include files in a couple of example programs
...
This improves portability of the examples. This patch was
submitted to the OpenBSD ports collection by naddy.
2011-12-06 19:54:48 -08:00
Rob Ward
7e4daaf908
progress function example: include timed interval
...
Adds a timer based off of CURLINFO_TOTAL_TIME that is used to perform
certain actions after a minimum amount of time has passed using the
progress function. As a consequence the curl handle is now also passed
into the progress function. Progress example now also includes an
example of how to retreive the TOTAL_TIME and print it out.
2011-12-05 23:13:34 +01:00
Dan Fandrich
95ddbdb1db
curl_easy_setopt arguments should be of type long in the examples
2011-11-14 14:07:25 -08:00
Guenter Knauf
b4fccc1d8e
Added SPNEGO to NetWare build.
2011-09-27 16:02:07 +02:00
Guenter Knauf
bb94b92894
Fixed MinGW examples makefile.
2011-09-25 16:31:31 +02:00
Guenter Knauf
230459dd00
NetWare makefile tweaks to select different builds.
2011-09-25 16:29:08 +02:00
Guenter Knauf
8bab6700d9
Added header to be included by dist script.
...
Probably the wrong place, but I dont know better.
2011-09-24 15:06:21 +02:00
Guenter Knauf
87a45c7998
MinGW64 has this prototype already.
2011-09-23 03:56:34 +02:00
Guenter Knauf
dafa2fc944
Fixed scanf format for WORD = unsigned short.
2011-09-23 03:21:50 +02:00
Guenter Knauf
ef3f1f3146
Added Win32-only samples.
2011-09-23 03:00:32 +02:00
Guenter Knauf
ba52e0a93b
Added a workaround for printing size_t.
2011-09-23 02:16:20 +02:00
Guenter Knauf
3c3aa09c65
Added NetWare examples makefile.
2011-09-22 14:35:49 +02:00
Guenter Knauf
62b0fdca9e
Another MinGW example makefile tweak.
2011-09-21 18:21:05 +02:00
Guenter Knauf
3317160c19
Fixed sample to compile for Windows platform.
2011-09-21 18:09:34 +02:00
Guenter Knauf
e4172d934d
Changed suffix rules to pattern rules.
...
Suffix rules cannot have any prerequisites of their own.
2011-09-21 03:25:19 +02:00
Guenter Knauf
a6b69b64ad
Some more MinGW build tweaks.
...
Added envvars to specify OpenSSL include, libpath and lib.
Added rule to create curlbuild.h from curlbuild.h.dist.
2011-09-21 02:06:05 +02:00
Guenter Knauf
a6c168b893
A bunch of MinGW build tweaks.
...
All paths to dependencies now quoted; synced examples makefile.
2011-09-20 15:05:28 +02:00
Daniel Stenberg
6790a543d4
progressfunc: a simple CURLOPT_PROGRESSFUNCTION example
2011-09-13 22:48:55 +02:00
Daniel Stenberg
450975b0c3
getinmemory.c: use better argument names for write callback
2011-09-07 22:43:28 +02:00
Daniel Stenberg
cce6508242
resolve.c: new example showing off CURLOPT_RESOLVE
2011-08-23 16:31:10 +02:00
Daniel Stenberg
af809923e4
externalsocket.c: new example
2011-08-23 11:28:35 +02:00
Daniel Stenberg
c8766ed3fb
ignore rtsp
2011-08-13 00:22:47 +02:00
Daniel Stenberg
657d02fbac
rtsp.c: converted to C
...
Trimmed the newlines to be LF-only. Converted the source to plain C, to
use curl style indents, to compile warning-free with picky options and
fixed the minor fprintf() bug on line 245. Added to makefile.
2011-08-10 10:57:50 +02:00
Jim Hollinger
8e2de86723
rtsp.c: new example
...
Code from
http://code.google.com/p/rtsprequest/source/browse/trunk/rtsprequest.cpp
2011-08-10 10:54:53 +02:00
Daniel Stenberg
ac28971aa6
examples: cleanup curl includes
...
Only <curl/curl.h> is needed typically and curl/types.h has been removed
2011-06-28 19:08:51 +02:00
Daniel Stenberg
c4bc1d473f
anyauthput.c: stdint.h must not be included unconditionally
...
As it is already included by curlbuild.h if it exists on the platform it
was included here superfluously anyway.
Reported by: Dagobert Michelsen
Bug: http://curl.haxx.se/bug/view.cgi?id=3294509
2011-04-28 22:14:05 +02:00
Gisle Vanem
e9afbe2a65
examples/makefile.dj: update email
2011-04-07 15:16:38 +02:00
Daniel Stenberg
029136da60
source header: added to more files
2011-03-12 00:14:32 +01: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
Brad Hards
879914def3
Use angle address, as for the rest of the example.
...
Also spelling fix for RECIPIENT #define.
2010-12-25 23:06:53 +01:00
Brad Hards
6076549304
Add angle brackets to addresses in easy SMTP examples, as for smtp-multi example.
2010-12-25 23:06:29 +01:00
Daniel Stenberg
7dc9393d3b
smtp-multi: put recipient within <brackets>
...
Even if libcurl might to do it for us, it is more correct.
2010-12-23 22:21:24 +01:00
Brad Hards
0e944fb24e
smtp-tls: add a missing newline
...
Without this you won't get the next (Subject) line.
2010-12-22 02:20:18 +01:00
Daniel Stenberg
bcfb9ea34c
examples: socket type cleanup
2010-12-18 17:13:24 +01:00
Brad Hards
d2395f962d
smtp-tls: add Message-ID: header
2010-12-18 17:07:57 +01:00
Daniel Stenberg
476b1a079b
gitignore: ignore the new example execs
2010-12-17 23:35:04 +01:00
Daniel Stenberg
9583b4af90
examples: fix compiler warnings
2010-12-17 23:34:26 +01:00
Daniel Stenberg
8219bc9e19
examples: build all examples easier
2010-12-17 23:34:06 +01:00
Brad Hards
57523e3578
smtp-tls: new example
...
This example shows how to send SMTP with TLS
2010-12-17 22:55:58 +01:00
Brad Hards
37a22d4749
Docs: add simple SMTP example
...
Add a simple SMTP example program, patterned after some of the existing
examples, and the curl application.
This version addresses issues raised by David Woodhouse on comments in
the simplesmtp.c example.
2010-12-17 22:51:54 +01:00
Daniel Stenberg
76c54bd129
example: fix compiler warnings in fopen.c
2010-12-17 00:09:48 +01:00