aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
AgeCommit message (Collapse)Author
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
2012-04-20Updated dependency lib versions.Guenter Knauf
2012-04-13examples: fix compiler warningsYang Tse
2012-04-09configure: Windows cross-compilation fixesYang Tse
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-01-20examples: updated README with two new example programsDan Fandrich
2012-01-16url2file: new simple exampleDaniel Stenberg
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-16imap.c: a dead simple imap exampleDaniel Stenberg
Just to show that IMAP is used just like other protocols
2012-01-04OpenSSL: remove reference to openssl internal structPeter Sylvester
With this change, curl compiles with the new OPENSSL_NO_SSL_INTERN cflag. This flag might become the default in some distant future.
2011-12-30examples: update README, Makefile.inc and gitignore with pop3s examplesAlessandro Ghedini
2011-12-30examples: add a couple of simple pop3s examplesAlessandro Ghedini
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-30removed trailing whitespaceYang Tse
2011-12-06Added some include files in a couple of example programsDan Fandrich
This improves portability of the examples. This patch was submitted to the OpenBSD ports collection by naddy.
2011-12-05progress function example: include timed intervalRob Ward
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-11-14curl_easy_setopt arguments should be of type long in the examplesDan Fandrich
2011-09-27Added SPNEGO to NetWare build.Guenter Knauf