aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
AgeCommit message (Collapse)Author
2017-09-11code style: use spaces around equals signsDaniel Stenberg
2017-09-05examples/mime: minor example code fixesViktor Szakats
2017-09-04mime: use CURL_ZERO_TERMINATED in examplesViktor Szakats
and some minor whitespace fixes
2017-09-04examples/post-callback: stop returning one byte at a timeDaniel Stenberg
... since people copy and paste code from this example and thus they get an inefficient POST operation without a good reason and sometimes without understanding why. Instead this now returns as much data as possible.
2017-09-03mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().Patrick Monnerat
This feature is badly supported in Windows: as a replacement, a caller has to use curl_mime_data_cb() with fread, fseek and possibly fclose callbacks to process opened files. The cli tool and documentation are updated accordingly. The feature is however kept internally for form API compatibility, with the known caveats it always had. As a side effect, stdin size is not determined by the cli tool even if possible and this results in a chunked transfer encoding. Test 173 is updated accordingly.
2017-09-02mime: tests and examples.Patrick Monnerat
Additional mime-specific tests. Existing tests updated to reflect small differences (Expect: 100-continue, data size change due to empty lines, etc). Option -F headers= keyword added to tests. test1135 disabled until the entry point order change is resolved. New example smtp-mime. Examples postit2 and multi-post converted from form API to mime API.
2017-08-30examples/sslbackend.c: fix failure of 'make checksrc'Kamil Dudka
./sslbackend.c:58:3: warning: else after closing brace on same line (BRACEELSE) } else if(isdigit(*name)) { ^ ./sslbackend.c:62:3: warning: else after closing brace on same line (BRACEELSE) } else ^
2017-08-28docs/examples: demonstrate how to select SSL backendsJohannes Schindelin
The newly-introduced curl_global_sslset() function deserves to be show-cased. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2017-08-25examples/threaded-ssl: mention that this is for openssl before 1.1Daniel Stenberg
2017-08-16examples/ftpuploadresume: checksrc complianceJay Satiro
2017-08-14examples/ftpuploadresume.c: use portable codeDaniel Stenberg
... converted from the MS specific _snscanf()
2017-06-16Makefile.m32: enable -W for MinGW32 buildMarcel Raad
The configure-based build also has this in addition to -Wall. Closes https://github.com/curl/curl/pull/1578
2017-06-14includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg
Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
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