summaryrefslogtreecommitdiff
path: root/docs/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* examples/ftpuploadresume.c: use portable codeDaniel Stenberg2017-08-142-26/+14
| | | | ... converted from the MS specific _snscanf()
* Makefile.m32: enable -W for MinGW32 buildMarcel Raad2017-06-161-1/+1
| | | | | | The configure-based build also has this in addition to -Wall. Closes https://github.com/curl/curl/pull/1578
* includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg2017-06-141-6/+2
| | | | | | | | Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
* examples/multi-uv.c: fix deprecated symbolRyuichi KAWAMATA2017-06-081-1/+1
| | | | Closes #1557
* typecheck-gcc.h: check CURLINFO_CERTINFODaniel Stenberg2017-06-011-12/+7
| | | | | | ... and update the certinfo.c example accordingly. Fixes https://github.com/curl/curl/issues/846
* examples/externalsocket.c: s/closesocket/closecbDaniel Stenberg2017-05-311-2/+2
| | | | | | | | ... since closesocket is a function in WinSock. Reported-by: Marcel Raad Bug: https://github.com/curl/curl/commit/55fcb8485914700132fd1854c9509b66c955efbe#co mmitcomment-22347818
* examples/sampleconv.c: indent changes, made callbacks staticDaniel Stenberg2017-05-311-37/+37
|
* example/externalsocket.c: make it use CLOSESOCKETFUNCTION tooDaniel Stenberg2017-05-311-0/+11
|
* examples: fix Wimplicit-fallthrough warningsMarcel Raad2017-05-245-0/+5
| | | | This is contained in -Wextra with GCC 7.
* ghiper.c/hiperfifo.c: add comment about missing timer functionalityDaniel Stenberg2017-05-192-4/+21
| | | | | | | | | 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
* asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction inputDaniel Stenberg2017-05-192-3/+3
| | | | | | | That means delete the timer. Reported-by: Michael Kaufmann Ref: #1253
* cookie_interface: fix -Wcomma warningMarcel Raad2017-05-111-1/+2
| | | | | clang 5.0 complains: possible misuse of comma operator here [-Wcomma]
* sendrecv: fix MinGW-w64 warningMarcel Raad2017-05-071-1/+1
| | | | | | | 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
* anyauthput: remove unused codeMarcel Raad2017-05-011-24/+0
| | | | | | | | The definition of TRUE was introduced in 4a728747e6f8845e500910e397dfc99aaf4a7984 and is not used anymore since e664cd5826d43930fcc5b5dbaedbec94af33184b. The usage of intptr_t was removed in 32e38b8f42477cf5ce3c3fef2fcc9db82f7fb7be.
* examples: fixed too long line and too long string warningsDan Fandrich2017-05-011-3/+3
|
* examples: declare TU-local variables staticMarcel Raad2017-04-305-8/+8
| | | | | This fixes missing-variable-declarations warnings when building with clang.
* cookie_interface.c: changed the other domain to example.com tooDaniel Stenberg2017-04-271-1/+1
|
* cookie_interface.c: fix cookie domain so the example worksDaniel Stenberg2017-04-271-3/+3
|
* examples: ftpuploadfrommem.cDaniel Stenberg2017-04-252-2/+126
| | | | | | Uploads data to an FTP site, directly from memory. Closes #1451
* examples/fopen: checksrc complianceJay Satiro2017-03-281-2/+2
|
* spelling fixesklemens2017-03-2611-25/+25
| | | | Closes #1356
* asiohiper: make sure socket is open in event_cbEdward Kimmel2017-03-231-8/+14
| | | | | | Send curl_socket_t to event_cb and make sure it hasn't been closed yet. Closes https://github.com/curl/curl/pull/1318
* examples: comment typos in http2 examplesDaniel Stenberg2017-03-213-6/+6
|
* examples/multi-uv: checksrc complianceJay Satiro2017-02-201-2/+2
|
* docs: fix timeout handling in multi-uv exampleMichael Kaufmann2017-02-181-14/+18
|
* examples/multithread.c: link to our multi-thread docsDaniel Stenberg2017-02-091-4/+4
| | | | ... instead of the OpenSSL mutex page.
* usercertinmem.c: improve the short descriptionDaniel Stenberg2017-01-181-3/+2
|
* examples: make the C++ examples follow our code style tooDaniel Stenberg2017-01-082-125/+85
| | | | At least mostly, not counting // comments.
* asiohiper: improved socket handlingAulddays2017-01-081-27/+59
| | | | | | | | | | 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
* curl_easy_recv: Improve documentation and example programMichael Kaufmann2016-12-181-35/+56
| | | | | | | | | | | 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
* checksrc: warn for assignments within if() expressionsDaniel Stenberg2016-12-143-19/+30
| | | | | ... they're already frowned upon in our source code style guide, this now enforces the rule harder.
* checksrc: stricter no-space-before-paren enforcementDaniel Stenberg2016-12-1315-45/+45
| | | | In order to make the code style more uniform everywhere
* checksrc: move open braces to comply with function declaration styleDaniel Stenberg2016-11-241-1/+2
|
* checksrc: white space edits to comply to stricter checksrcDaniel Stenberg2016-11-245-8/+11
|
* checksrc: code style: use 'char *name' styleDaniel Stenberg2016-11-245-32/+32
|
* examples/fileupload.c: fclose the file as wellDaniel Stenberg2016-11-081-7/+4
|
* s/cURL/curlDaniel Stenberg2016-11-074-5/+5
| | | | | | 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.
* docs: shorten and simplify the top comment in multi-uv.cDaniel Stenberg2016-11-031-9/+3
| | | | and change URL to use https
* docs: handle CURL_POLL_INOUT in multi-uv exampleAndrei Sedoi2016-11-031-12/+13
|
* docs: multi-uv: don't use CURLMsg after cleanupAndrei Sedoi2016-11-031-5/+12
|
* docs: remove unused variables in multi-uv exampleAndrei Sedoi2016-11-031-5/+0
|
* docs: fix req->data in multi-uv exampleAndrei Sedoi2016-10-271-1/+1
| | | | Closes #1088
* examples/imap-append: Set size of data to be uploadedJay Satiro2016-09-181-0/+8
| | | | | | | | | | 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
* make/checksrc: use $srcdir, not $top_srcdirDaniel Stenberg2016-04-191-1/+1
|
* checksrc/makefile.am: use $top_srcdir to find source filesDaniel Stenberg2016-04-181-1/+1
| | | | ... to properly support out of source tree builds.
* docs/examples: remove spurious white spaces all overDaniel Stenberg2016-04-0312-31/+31
| | | | ... to please the new, slightly picker, checksrc.pl
* curlx.c: use more curl style codeDaniel Stenberg2016-03-061-13/+4
|
* examples/make: add 'checksrc' targetDaniel Stenberg2016-02-171-1/+4
|
* 10-at-a-time: typecast the argument passed to sleep()Daniel Stenberg2016-02-171-1/+1
|
* externalsocket.c: fix compiler warning for fwrite return typeDaniel Stenberg2016-02-171-1/+1
|