aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
AgeCommit message (Collapse)Author
2017-06-08examples/multi-uv.c: fix deprecated symbolRyuichi KAWAMATA
Closes #1557
2017-06-01typecheck-gcc.h: check CURLINFO_CERTINFODaniel Stenberg
... and update the certinfo.c example accordingly. Fixes https://github.com/curl/curl/issues/846
2017-05-31examples/externalsocket.c: s/closesocket/closecbDaniel Stenberg
... since closesocket is a function in WinSock. Reported-by: Marcel Raad Bug: https://github.com/curl/curl/commit/55fcb8485914700132fd1854c9509b66c955efbe#co mmitcomment-22347818
2017-05-31examples/sampleconv.c: indent changes, made callbacks staticDaniel Stenberg
2017-05-31example/externalsocket.c: make it use CLOSESOCKETFUNCTION tooDaniel Stenberg
2017-05-24examples: fix Wimplicit-fallthrough warningsMarcel Raad
This is contained in -Wextra with GCC 7.
2017-05-19ghiper.c/hiperfifo.c: add comment about missing timer functionalityDaniel Stenberg
It takes someone to read up on the APIs of these libraries to figure out how to do this correctly. Reported-by: Michael Kaufmann Closes #1253
2017-05-19asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction inputDaniel Stenberg
That means delete the timer. Reported-by: Michael Kaufmann Ref: #1253
2017-05-11cookie_interface: fix -Wcomma warningMarcel Raad
clang 5.0 complains: possible misuse of comma operator here [-Wcomma]
2017-05-07sendrecv: fix MinGW-w64 warningMarcel Raad
The first argument to select is an int, while curl_socket_t is unsigned long long when using WinSock. It's ignored anyway [1]. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms740141.aspx
2017-05-01anyauthput: remove unused codeMarcel Raad
The definition of TRUE was introduced in 4a728747e6f8845e500910e397dfc99aaf4a7984 and is not used anymore since e664cd5826d43930fcc5b5dbaedbec94af33184b. The usage of intptr_t was removed in 32e38b8f42477cf5ce3c3fef2fcc9db82f7fb7be.
2017-05-01examples: fixed too long line and too long string warningsDan Fandrich
2017-04-30examples: declare TU-local variables staticMarcel Raad
This fixes missing-variable-declarations warnings when building with clang.
2017-04-27cookie_interface.c: changed the other domain to example.com tooDaniel Stenberg
2017-04-27cookie_interface.c: fix cookie domain so the example worksDaniel Stenberg
2017-04-25examples: ftpuploadfrommem.cDaniel Stenberg
Uploads data to an FTP site, directly from memory. Closes #1451
2017-03-28examples/fopen: checksrc complianceJay Satiro
2017-03-26spelling fixesklemens
Closes #1356
2017-03-23asiohiper: make sure socket is open in event_cbEdward Kimmel
Send curl_socket_t to event_cb and make sure it hasn't been closed yet. Closes https://github.com/curl/curl/pull/1318
2017-03-21examples: comment typos in http2 examplesDaniel Stenberg
2017-02-20examples/multi-uv: checksrc complianceJay Satiro
2017-02-18docs: fix timeout handling in multi-uv exampleMichael Kaufmann
2017-02-09examples/multithread.c: link to our multi-thread docsDaniel Stenberg
... instead of the OpenSSL mutex page.
2017-01-18usercertinmem.c: improve the short descriptionDaniel Stenberg
2017-01-08examples: make the C++ examples follow our code style tooDaniel Stenberg
At least mostly, not counting // comments.
2017-01-08asiohiper: improved socket handlingAulddays
libcurl requires CURLMOPT_SOCKETFUNCTION to KEEP watching socket events and notify back. Modify event_cb() to continue watching events when fired. Fixes #1191 Closes #1192 Fixed-by: Mingliang Zhu
2016-12-18curl_easy_recv: Improve documentation and example programMichael Kaufmann
Follow-up to 82245ea: Fix the example program sendrecv.c (handle CURLE_AGAIN, handle incomplete send). Improve the documentation for curl_easy_recv() and curl_easy_send(). Reviewed-by: Frank Meier Assisted-by: Jay Satiro See https://github.com/curl/curl/pull/1134
2016-12-14checksrc: warn for assignments within if() expressionsDaniel Stenberg
... they're already frowned upon in our source code style guide, this now enforces the rule harder.
2016-12-13checksrc: stricter no-space-before-paren enforcementDaniel Stenberg
In order to make the code style more uniform everywhere
2016-11-24checksrc: move open braces to comply with function declaration styleDaniel Stenberg
2016-11-24checksrc: white space edits to comply to stricter checksrcDaniel Stenberg
2016-11-24checksrc: code style: use 'char *name' styleDaniel Stenberg
2016-11-08examples/fileupload.c: fclose the file as wellDaniel Stenberg
2016-11-07s/cURL/curlDaniel Stenberg
We're mostly saying just "curl" in lower case these days so here's a big cleanup to adapt to this reality. A few instances are left as the project could still formally be considered called cURL.
2016-11-03docs: shorten and simplify the top comment in multi-uv.cDaniel Stenberg
and change URL to use https
2016-11-03docs: handle CURL_POLL_INOUT in multi-uv exampleAndrei Sedoi
2016-11-03docs: multi-uv: don't use CURLMsg after cleanupAndrei Sedoi
2016-11-03docs: remove unused variables in multi-uv exampleAndrei Sedoi
2016-10-27docs: fix req->data in multi-uv exampleAndrei Sedoi
Closes #1088
2016-09-18examples/imap-append: Set size of data to be uploadedJay Satiro
Prior to this commit this example failed with error 'Cannot APPEND with unknown input file size'. Bug: https://github.com/curl/curl/issues/1008 Reported-by: lukaszgn@users.noreply.github.com Closes https://github.com/curl/curl/pull/1011
2016-04-19make/checksrc: use $srcdir, not $top_srcdirDaniel Stenberg
2016-04-18checksrc/makefile.am: use $top_srcdir to find source filesDaniel Stenberg
... to properly support out of source tree builds.
2016-04-03docs/examples: remove spurious white spaces all overDaniel Stenberg
... to please the new, slightly picker, checksrc.pl
2016-03-06curlx.c: use more curl style codeDaniel Stenberg
2016-02-17examples/make: add 'checksrc' targetDaniel Stenberg
2016-02-1710-at-a-time: typecast the argument passed to sleep()Daniel Stenberg
2016-02-17externalsocket.c: fix compiler warning for fwrite return typeDaniel Stenberg
2016-02-17anyauthput.c: fix compiler warningsDaniel Stenberg
2016-02-17simplessl.c: warning: while with spaceDaniel Stenberg
2016-02-17curlx.c: i2s_ASN1_IA5STRING() clashes with an openssl functionDaniel Stenberg
Reported-By: Gisle Vanem