aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
AgeCommit message (Collapse)Author
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
2012-12-05examples: fix compilation issues - commit 7332a7cafb follow-upYang Tse
2012-12-05examples: fix compilation issues - commit 23f8dca6fb follow-upYang Tse
2012-12-05examples: fix compilation issuesYang Tse
2012-12-04build: explain current role of LIBS in our Makefile.am filesYang Tse
BLANK_AT_MAKETIME may be used in our Makefile.am files to blank LIBS variable used in generated makefile at makefile processing time. Doing this functionally prevents LIBS from being used for all link targets in given makefile.
2012-11-30build: prevent global LIBS from influencing examples build targetsYang Tse
2012-11-25examples: Updated asiohiper.cpp to remove connect from opensocketLijo Antony
Blocking connect on the socket has been removed from opensocket callback. opensocket just opens a new socket and gives it back to libcurl and libcurl will take care of the connect. sockopt_callback has also been removed, as it is no longer required.
2012-11-21htmltitle: use .cpp extension for C++ examplesDaniel Stenberg
2012-11-21examples: Added a c++ example of using multi with boost::asioLijo Antony
Added an example for demonstrating the usage of curl multi interface with boost::asio in c++
2012-11-06httpcustomheader.c: free the headers after useDaniel Stenberg
2012-11-06uniformly use AM_CPPFLAGS, avoid deprecated INCLUDESDave Reisner
Since automake 1.12.4, the warnings are issued on running automake: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Avoid INCLUDES and roll these flags into AM_CPPFLAGS. Compile tested on: Ubuntu 10.04 (automake 1:1.11.1-1) Ubuntu 12.04 (automake 1:1.11.3-1ubuntu2) Arch Linux (automake 1.12.4)
2012-11-01evhiperfifo: fix the pointer passed to WRITEDATADaniel Stenberg
Bug: http://curl.haxx.se/bug/view.cgi?id=3582407 Reported by: Oscar Norlander
2012-10-18href_extractor.c: fix the URLDaniel Stenberg
2012-10-18href_extractor: example code extracting href elementsMichał Kowalczyk
It does so in a streaming manner using the "Streaming HTML parser".
2012-10-01https.c example: remember to call curl_global_init()Kamil Dudka
... in order not to leak memory on initializing an SSL library. Reported by: Tomas Mlcoch
2012-08-27examples: use do/while loop for multi examplesDave Reisner
It's conceivable that after the first time curl_multi_perform returns, the outvalue still_running will be 0, but work will have been done. This is shown by a workload of small, purely file:// based URLs. Ensure that we always read pending messages off the multi handle by forcing the while loop to run at least once.
2012-08-27ftpsget: simple example showing a FTPS fetchDaniel Stenberg
2012-08-27sftpget: SFTP is not "SSH FTP"Daniel Stenberg
2012-08-27sftpget: example showing a simple SFTP downloadArmel Asselin
... using SSH-agent
2012-08-21https.c example: spell check used defineDaniel Stenberg
Bug: http://curl.haxx.se/bug/view.cgi?id=3559845 Reported by: Olivier Berger
2012-07-12Added error checking for curl_global_init().Guenter Knauf
2012-07-12Added curl_global_* functions.Guenter Knauf
2012-07-12Added curl_global_* functions.Guenter Knauf
2012-07-04Removed non-used variable.Guenter Knauf
2012-07-04Added error checking for samples.Guenter Knauf
2012-07-03MinGW makefile tweaks for running from sh.Guenter Knauf
Added function macros to make path converting easier. Added CROSSPREFIX to all compile tools.
2012-05-27Enabled OpenSSL static linkage.Guenter Knauf
2012-05-22Updated dependency libary versions.Guenter Knauf
2012-04-26Updated dependency lib versions.Guenter Knauf