summaryrefslogtreecommitdiff
path: root/docs/examples/post-callback.c
AgeCommit message (Collapse)Author
2025-07-21GHA/checksrc: expand spellcheck, fix issues foundViktor Szakats
- codespell: break logic out into its own runnable script. Allowing to run it on local machines. - codespell: install via `pip`, bump to latest version. - codespell: show version number in CI log. - codespell: drop no longer needed word exception: `msdos`. - codespell: include all curl source tree, except `packages` and `winbuild`. Drop an obsolete file exclusion. - add new spellchecker job using the `typos` tool. It includes the codespell dictionary and a couple more. Use linuxbrew to install it. This takes 10 seconds, while installing via `cargo` from source would take over a minute. - codespell: introduce an inline ignore filter compatible with `cspell` Make `typos` recognize it, too. Move single exceptions inline. Fix new typos found. Also rename variables and words to keep spellchecking exceptions at minumum. This involves touching some tests. Also switch base64 strings to `%b64[]` to avoid false positives. Ref: https://github.com/crate-ci/typos/blob/master/docs/reference.md Ref: https://github.com/codespell-project/codespell?tab=readme-ov-file#inline-ignore Ref: https://github.com/codespell-project/codespell/issues/1212#issuecomment-1721152455 Ref: https://cspell.org/docs/Configuration/document-settings Closes #17905
2024-08-04tidy-up: OS namesViktor Szakats
Use these words and casing more consistently across text, comments and one curl tool output: AIX, ALPN, ANSI, BSD, Cygwin, Darwin, FreeBSD, GitHub, HP-UX, Linux, macOS, MS-DOS, MSYS, MinGW, NTLM, POSIX, Solaris, UNIX, Unix, Unicode, WINE, WebDAV, Win32, winbind, WinIDN, Windows, Windows CE, Winsock. Mostly OS names and a few more. Also a couple of other minor text fixups. Closes #14360
2024-02-27examples: use present tense in commentsDaniel Stenberg
remove "will" and some other word fixes Closes #13003
2023-01-03copyright: update all copyright lines and remove year rangesDaniel Stenberg
- they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
2022-10-27misc: typo and grammar fixesAyesh Karunaratne
- Replace `Github` with `GitHub`. - Replace `windows` with `Windows` - Replace `advice` with `advise` where a verb is used. - A few fixes on removing repeated words. - Replace `a HTTP` with `an HTTP` Closes #9802
2022-06-13copyright: make repository REUSE compliantmax.mehl
Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the file `.reuse/dep5`. This commit also adds a Github workflow to check pull requests and adapts copyright.pl to the changes. Closes #8869
2020-12-30docs/examples: adjust prototypes for CURLOPT_READFUNCTIONOlaf Hering
The type of the buffer in curl_read_callback is 'char *', not 'void *'. Signed-off-by: Olaf Hering <olaf@aepfle.de> Closes #6392
2020-11-05copyright: fix year rangesDaniel Stenberg
Follow-up from 4d2f8006777
2020-11-04curl.se: new homeDaniel Stenberg
Closes #6172
2017-09-21examples/post-callback: use long for CURLOPT_POSTFIELDSIZEMarcel Raad
Otherwise, typecheck-gcc.h warns on MinGW-w64.
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-04-30examples: declare TU-local variables staticMarcel Raad
This fixes missing-variable-declarations warnings when building with clang.
2016-02-03URLs: change all http:// URLs to https://Daniel Stenberg
2015-07-01examples: provide <DESC> sectionsDaniel Stenberg
2012-12-05examples: fix compilation issues - commit 23f8dca6fb follow-upYang Tse
2012-07-12Added error checking for curl_global_init().Guenter Knauf
2012-07-12Added curl_global_* functions.Guenter Knauf
2012-07-04Added error checking for samples.Guenter Knauf
2012-04-13examples: fix compiler warningsYang Tse
2011-03-10sources: update source headersDaniel Stenberg
All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
2010-10-05examples: use example.com in example URLsDaniel Stenberg
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2008-05-22Fixed a surprising number of example programs that were passing int argumentsDan Fandrich
to curl_easy_setopt instead of long.
2008-04-12return 0 not -1 at end of data!Daniel Stenberg
2008-03-13fix code that is normally #ifdef'ed outDaniel Stenberg
2007-07-16Fixed some more simple compile warnings in the examples.Dan Fandrich
2007-07-12Fixed some compile warnings and errors and improved portability in theDan Fandrich
examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer.
2005-12-14Rene Bernhardt's correctionsDaniel Stenberg
2004-08-23lost of more into on how to tweak some headersDaniel Stenberg
2003-12-08removed old version checksDaniel Stenberg
2003-12-08use the newer option namesDaniel Stenberg
2002-03-14new example for libcurl 7.9.6 or laterDaniel Stenberg