summaryrefslogtreecommitdiff
path: root/tests/libtest/mk-lib1521.pl
Commit message (Collapse)AuthorAgeFilesLines
* libtest/mk-lib1521: adapt to new public header layoutDaniel Stenberg2020-01-091-23/+24
|
* test1521: adapt to SLISTPOINTDaniel Stenberg2019-06-251-12/+4
| | | | | | | | | The header now has the slist-using options marked as SLISTPOINT so this makes sure test 1521 understands that. Follow-up to ae99b4de1c443ae989 Closes #4074
* http: Implement trailing headers for chunked transfersAyoub Boudhar2018-12-141-0/+1
| | | | | | | | | | | | | This adds the CURLOPT_TRAILERDATA and CURLOPT_TRAILERFUNCTION options that allow a callback based approach to sending trailing headers with chunked transfers. The test server (sws) was updated to take into account the detection of the end of transfer in the case of trailing headers presence. Test 1591 checks that trailing headers can be sent using libcurl. Closes #3350
* spelling fixesViktor Szakats2018-02-231-1/+1
| | | | | | | | Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
* url: Add option CURLOPT_RESOLVER_START_FUNCTIONFrancisco Sedano2018-02-211-0/+1
| | | | | | | | | | | | - Add new option CURLOPT_RESOLVER_START_FUNCTION to set a callback that will be called every time before a new resolve request is started (ie before a host is resolved) with a pointer to backend-specific resolver data. Currently this is only useful for ares. - Add new option CURLOPT_RESOLVER_START_DATA to set a user pointer to pass to the resolver start callback. Closes https://github.com/curl/curl/pull/2311
* scripts: allow all perl scripts to be run directlyJay Satiro2018-01-071-0/+0
| | | | | | | | - Enable execute permission (chmod +x) - Change interpreter to /usr/bin/env perl Closes https://github.com/curl/curl/pull/2222
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-3/+3
|
* mime: new MIME API.Patrick Monnerat2017-09-021-0/+4
| | | | | | | Available in HTTP, SMTP and IMAP. Deprecates the FORM API. See CURLOPT_MIMEPOST. Lib code and associated documentation.
* tests: Make sure libtests & unittests call curl_global_cleanup()Dan Fandrich2017-08-261-0/+2
| | | | These were missed in commit c468c27b.
* test1521: fix compiler warningsMarcel Raad2017-06-251-3/+4
| | | | | | | | | | | | The integer literal 3123123123 doesn't fit into a 32-bit signed integer, so GCC with 32-bit long warns in C90 mode: this decimal constant is unsigned only in ISO C90 [enabled by default] Fix this by using ULONG_MAX, which should fit in any curl_off_t and has the correct suffix to not issue any warnings. Also adds the missing CURLOPT_REQUEST_TARGET from commit 9b167fd090f596eac828817d48c247eeae53407f. Closes https://github.com/curl/curl/pull/1611
* lib1521: fix missing-variable-declarations clang warningsMarcel Raad2017-06-211-14/+14
| | | | Declare TU-local variables static.
* test1521: test getinfo's OFF_T types tooDaniel Stenberg2017-06-191-0/+4
| | | | Closes #1588
* lib1521: add curl_easy_getinfo calls to the test setDaniel Stenberg2017-06-191-26/+103
| | | | | Also added return value checks to make sure no unexpected return codes are used.
* mk-lib1521.pl: updated to match the test changes in 916ec30aDan Fandrich2017-06-131-15/+22
|
* lib1521: fix compiler warnings on the use of bad 'long' valuesbagder/lib1521-long-warningsDaniel Stenberg2017-06-091-4/+4
| | | | | Reported-by: Marcel Raad Bug: https://github.com/curl/curl/commit/cccac4fb2b20d6ed87da7978408c3ecacc464fe4#commitcomment-22453387
* lib1521: fix compiler warningsDaniel Stenberg2017-06-061-27/+43
|
* test1521: make the code < 80 columns wideDaniel Stenberg2017-06-051-1/+1
|
* test1121: use stricter types to work with typcheck-gccDaniel Stenberg2017-06-051-2/+57
|
* test1521: test *all* curl_easy_setopt optionsDaniel Stenberg2017-06-051-0/+143
mk-lib1521.pl generates a test program (lib1521.c) that calls curl_easy_setopt() for every known option with a few typical values to make sure they work (ignoring the return codes). Some small changes were necessary to avoid asserts and NULL accesses when doing this. The perl script needs to be manually rerun when we add new options. Closes #1543