aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
AgeCommit message (Collapse)Author
2014-01-04examples: Added IMAP COPY exampleSteve Holme
2014-01-04examples: Added IMAP DELETE exampleSteve Holme
2014-01-04examples: Added IMAP CREATE exampleSteve Holme
2014-01-02examples: Added IMAP SEARCH exampleSteve Holme
2014-01-02examples: Added IMAP EXAMINE mailbox folder exampleSteve Holme
2014-01-01examples: Updated SMTP multi example to be more realisticSteve Holme
Updated the contents of the email and payload callback as per the IMAP and other SMTP examples.
2014-01-01examples: Corrected unescaped backslash in imap-store.cSteve Holme
2014-01-01examples: Update SMTP TLS example mail content to be RFC-2821 compliantSteve Holme
...and made some minor coding style changes to better match the curl coding standards as well as the other email related examples.
2014-01-01examples: Added IMAP APPEND exampleSteve Holme
2014-01-01examples: Added IMAP STORE exampleSteve Holme
2013-12-31examples: Added IMAP LIST mailbox exampleSteve Holme
2013-12-31examples: Updated IMAP fetch example for libcurl 7.30.0Steve Holme
2013-12-31examples: Rename before adding additional email examplesSteve Holme
2013-12-31examples: Added SMTP EXPN command exampleSteve Holme
2013-12-31examples: Added SMTP email verification exampleSteve Holme
2013-12-31examples: Updated copyright year for recent editsSteve Holme
2013-12-31examples: Corrected incorrect indentation in smtp-multi.cSteve Holme
2013-12-31examples: Updated SMTP examples to set CURLOPT_UPLOADSteve Holme
2013-11-30curl_easy_getinfo: Post CURLINFO_TLS_SESSION tidy upSteve Holme
1) Renamed curl_tlsinfo to curl_tlssessioninfo as discussed on the mailing list. 2) Renamed curl_ssl_backend to curl_sslbackend so it doesn't follow our function naming convention. 3) Updated sessioninfo.c example accordingly.
2013-11-28sessioninfo.c: Added sample code for CURLINFO_TLS_SESSIONChristian Grothoff
Added a simple example to show how one can use CURLINFO_TLS_SESSION for obtaining extensive TLS certificate information.
2013-10-27docs/examples/httpput.c: fix build for MSVCGisle Vanem
"Dan Fandrich" <dan@coneharvesters.com> wrote: >> But I'm not sure <unistd.h> is needed at all. > > It's needed for close(2). But the only reason that's needed is because fstat > is used instead of stat(2); if you fix that, then you could remove that > include altogether. Okay. I've tested the following with MSVC and MingW. htttput.c now simply uses stat():
2013-10-15usercertinmem: fix memory leaksIshan SinghLevett
2013-09-29getinmemory: remove a commentDaniel Stenberg
The comment mentioned the need to free the data, but the example already does that free
2013-09-29postinmemory: new exampleDaniel Stenberg
This is similar to getinmemory.c but with an initial POST. Combined-by: Ulf Samuelsson
2013-07-18CURLOPT_XFERINFOFUNCTION: introducing a new progress callbackDaniel Stenberg
CURLOPT_XFERINFOFUNCTION is now the preferred progress callback function and CURLOPT_PROGRESSFUNCTION is considered deprecated. This new callback uses pure 'curl_off_t' arguments to pass on full resolution sizes. It otherwise retains the same characteristics: the same call rate, the same meanings for the arguments and the return code is used the same way. The progressfunc.c example is updated to show how to use the new callback for newer libcurls while supporting the older one if built with an older libcurl or even built with a newer libcurl while running with an older.
2013-07-03examples: Moved usercertinmem.c to COMPLICATED_EXAMPLESDan Fandrich
This prevents it from being built during a "make check" since it depends on OpenSSL.
2013-06-20Use opened body.out file and write content to it.Guenter Knauf
2013-05-19tarball: include the xmlstream exampleDaniel Stenberg
2013-05-19xmlstream: XML stream parsing example source codeDavid Strauss
Add an XML stream parsing example using Expat. Add missing ignore for the binary from an unrelated example.
2013-05-11Updated zlib version in build files.Guenter Knauf
2013-04-18usercertinmem.c: add example showing user cert in memoryIshan SinghLevett
Relies on CURLOPT_SSL_CTX_FUNCTION, which is OpenSSL specific
2013-04-05examples/multi-single.c: fix the order of destructionsKamil Dudka
... so that it adheres to the API documentation. Reported by: Tomas Mlcoch
2013-04-01Added dns and connect time to output.Guenter Knauf
2013-03-27multi-uv.c: remove unused variableClemens Gruber
2013-03-27Added libuv example multi-uv.cClemens Gruber
2013-03-12curl.h: stricter CURL_EXTERN linkage decorations logicYang Tse
No API change involved. Info: http://curl.haxx.se/mail/lib-2013-02/0234.html
2013-03-10hiperfifo: updated to use current libevent APIDaniel Stenberg
Patch by: Myk Taylor
2013-03-09examples/getinmemory.c: abort the transfer if not enough memoryCédric Deltheil
No more use exit(3) but instead tell libcurl that no byte has been written to let it return a `CURLE_WRITE_ERROR`. In addition, check curl easy handle return code.
2013-02-10htmltitle: fix suggested build commandAlessandro Ghedini
2013-02-09Updated dependency libs.Guenter Knauf
2013-01-30Updated date.Guenter Knauf
2013-01-29Fixed debug.c to work again unchanged.Guenter Knauf
Added CURLOPT_FOLLOWLOCATION since example.com is now redirected.
2013-01-28Updated dependency libs.Guenter Knauf
2013-01-28Fixed simple.c to work again unchanged.Guenter Knauf
Added CURLOPT_FOLLOWLOCATION since example.com is now redirected.
2013-01-09build: fix circular header inclusion with other packagesYang Tse
This commit renames lib/setup.h to lib/curl_setup.h and renames lib/setup_once.h to lib/curl_setup_once.h. Removes the need and usage of a header inclusion guard foreign to libcurl. [1] Removes the need and presence of an alarming notice we carried in old setup_once.h [2] ---------------------------------------- 1 - lib/setup_once.h used __SETUP_ONCE_H macro as header inclusion guard up to commit ec691ca3 which changed this to HEADER_CURL_SETUP_ONCE_H, this single inclusion guard is enough to ensure that inclusion of lib/setup_once.h done from lib/setup.h is only done once. Additionally lib/setup.h has always used __SETUP_ONCE_H macro to protect inclusion of setup_once.h even after commit ec691ca3, this was to avoid a circular header inclusion triggered when building a c-ares enabled version with c-ares sources available which also has a setup_once.h header. Commit ec691ca3 exposes the real nature of __SETUP_ONCE_H usage in lib/setup.h, it is a header inclusion guard foreign to libcurl belonging to c-ares's setup_once.h The renaming this commit does, fixes the circular header inclusion, and as such removes the need and usage of a header inclusion guard foreign to libcurl. Macro __SETUP_ONCE_H no longer used in libcurl. 2 - Due to the circular interdependency of old lib/setup_once.h and the c-ares setup_once.h header, old file lib/setup_once.h has carried back from 2006 up to now days an alarming and prominent notice about the need of keeping libcurl's and c-ares's setup_once.h in sync. Given that this commit fixes the circular interdependency, the need and presence of mentioned notice is removed. All mentioned interdependencies come back from now old days when the c-ares project lived inside a curl subdirectory. This commit removes last traces of such fact.
2012-12-29examples/certinfo.c: fix compiler warningYang Tse
2012-12-11examples/simplessl.c: fix compiler warningYang Tse
2012-12-10examples/externalsocket.c: fix SunPro compilation issueYang Tse
2012-12-10examples/simplessl.c: fix compiler warningYang Tse
2012-12-10examples/anyauthput.c: fix Tru64 compilation issueYang Tse