summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* test1282: verify the ftp-gss checkDaniel Stenberg2016-12-242-1/+46
|
* lib557.c: use a shorter MAXIMIZE representationDaniel Stenberg2016-12-221-1/+1
| | | | | | | Since several compilers had problems with the previous one Reported-by: Ray Satiro Bug: https://curl.haxx.se/mail/lib-2016-12/0098.html
* runtests: remove the valgrind parserDaniel Stenberg2016-12-212-84/+3
| | | | | Old legacy parsing that 1) hid problems for us and 2) probably isn't needed anymore.
* tests/Makefile: run checksrc on debug buildsDaniel Stenberg2016-12-211-0/+5
| | | | ... just like we already do in src/ and lib/
* lib557: move the "enable LONGLINE" to allow more long linesDaniel Stenberg2016-12-211-2/+1
| | | | This file is riddled with them...
* tests: checksrc complianceJay Satiro2016-12-192-1/+3
|
* printf: fix floating point buffer overflow issuesDaniel Stenberg2016-12-192-3/+134
| | | | ... and add a bunch of floating point printf tests
* curl_easy_recv: Improve documentation and example programMichael Kaufmann2016-12-182-5/+6
| | | | | | | | | | | 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
* manpage-scan.pl: allow deprecated options to get removed from curl.1Daniel Stenberg2016-12-171-4/+4
| | | | | --krb4, --ftp-ssl and --ftp-ssl-reqd no longer need to be documented in the man page
* checksrc: warn for assignments within if() expressionsDaniel Stenberg2016-12-1460-110/+216
| | | | | ... 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-138-12/+12
| | | | In order to make the code style more uniform everywhere
* test2032: Mark test as flakyDan Fandrich2016-12-051-0/+1
|
* test1281: added http as a required featureDan Fandrich2016-12-021-0/+3
|
* curl: support zero-length argument strings in config filesDaniel Stenberg2016-12-021-2/+2
| | | | | | ... like 'user-agent = ""' Adjusted test 71 to verify.
* tests: fix CONNECT test cases to be more strictDaniel Stenberg2016-12-016-4/+6
| | | | ... as they broke with the cleaned up CONNECT handling
* CONNECT: reject TE or CL in 2xx responsesDaniel Stenberg2016-12-013-11/+5
| | | | | | | | A server MUST NOT send any Transfer-Encoding or Content-Length header fields in a 2xx (Successful) response to CONNECT. (RFC 7231 section 4.3.6) Also fixes the three test cases that did this.
* URL parser: reject non-numerical port numbersDaniel Stenberg2016-12-012-1/+36
| | | | Test 1281 added to verify
* runtests: made Servers: output be more consistent by removing OFFDan Fandrich2016-11-301-1/+1
|
* CURLOPT_CONNECT_TO: Skip non-matching "connect-to" entries properlyMichael Kaufmann2016-11-303-1/+121
| | | | | | | | | | | | | If a port number in a "connect-to" entry does not match, skip this entry instead of connecting to port 0. If a port number in a "connect-to" entry matches, use this entry and look no further. Reported-by: Jay Satiro Assisted-by: Jay Satiro, Daniel Stenberg Closes #1148
* lib1536: checksrc complianceJay Satiro2016-11-281-1/+2
|
* tests: Add some testcases for recent new features.Frank Gevaerts2016-11-268-3/+483
| | | | | | | Add missing tests for CURLINFO_SCHEME, CURLINFO_PROTOCOL, %{scheme}, and %{http_version} closes #1143
* test1135: Fix curl_easy_duphandle prototype for code styleJay Satiro2016-11-241-1/+1
| | | | Follow-up to dbadaeb which changed the style.
* checksrc: move open braces to comply with function declaration styleDaniel Stenberg2016-11-243-24/+26
|
* checksrc: white space edits to comply to stricter checksrcDaniel Stenberg2016-11-245-8/+8
|
* checksrc: code style: use 'char *name' styleDaniel Stenberg2016-11-2414-28/+28
|
* tests: Fix HTTP2-Settings header for huge window sizeJay Satiro2016-11-172-2/+2
| | | | | Follow-up to a4d8888. Changing the window size in that commit resulted in a different HTTP2-Settings upgrade header, causing test 1800 to fail.
* glob: fix [a-c] globbing regressionDaniel Stenberg2016-11-152-0/+60
| | | | | | | | | | Brought in ee4f76606cf Added test case 1280 to verify Reported-by: Dave Reisner Bug: https://github.com/curl/curl/commit/ee4f76606cfa4ee068bf28edd37c8dae7e8db317#commitcomment-19823146
* curl: add --fail-earlyDaniel Stenberg2016-11-142-1/+39
| | | | | | | Exit with an error on the first transfer error instead of continuing to do the rest of the URLs. Discussion: https://curl.haxx.se/mail/archive-2016-11/0038.html
* tests: fixed variable might be clobbered warningDan Fandrich2016-11-121-6/+4
| | | | | This stops the compiler from potentially making invalid assumptions about the immutability of sdp and sap across the longjmp boundary.
* test558: adapt to 0649433daDaniel Stenberg2016-11-111-2/+2
|
* s/cURL/curlDaniel Stenberg2016-11-077-12/+12
| | | | | | 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.
* easy: Initialize info variables on easy init and duphandleJay Satiro2016-11-054-3/+186
| | | | | | | | | | | | - Call Curl_initinfo on init and duphandle. Prior to this change the statistical and informational variables were simply zeroed by calloc on easy init and duphandle. While zero is the correct default value for almost all info variables, there is one where it isn't (filetime initializes to -1). Bug: https://github.com/curl/curl/issues/1103 Reported-by: Neal Poole
* dist: add CMakeLists.txt to the tarballJakub Zakrzewski2016-11-041-1/+1
|
* tests/util: get a private strncasecompare cloneDaniel Stenberg2016-10-315-9/+93
| | | | | ... since the curlx_* code no longer provides one and we don't link libcurl to these test servers.
* libauthretry: use the external function curl_strequalDan Fandrich2016-10-311-4/+3
| | | | The internal version strcasecompare isn't available outside libcurl
* unit1301: keep testing curl_strequalDaniel Stenberg2016-10-311-7/+7
| | | | as that is still part of the API, fix from 8fe4bd084412f30
* strcase: s/strequal/strcasecompareDaniel Stenberg2016-10-311-2/+2
| | | | some more follow-ups to 811a693b80
* test165: adapted to the libidn2 use and IDNA2008 fixDaniel Stenberg2016-10-311-2/+8
|
* strcasecompare: is the new name for strequal()Daniel Stenberg2016-10-315-20/+20
| | | | | | | ... to make it less likely that we forget that the function actually does case insentive compares. Also replaced several invokes of the function with a plain strcmp when case sensitivity is not an issue (like comparing with "-").
* parsedate: handle cut off numbers betterDaniel Stenberg2016-10-312-1/+13
| | | | | | | | | ... and don't read outside of the given buffer! CVE-2016-8621 bug: https://curl.haxx.se/docs/adv_20161102G.html Reported-by: Luật Nguyễn
* test1246: verify URL parsing with host name ending with '#'Daniel Stenberg2016-10-312-1/+65
|
* testcurl.1: fix the URL to the autobuild summaryDaniel Stenberg2016-10-221-1/+1
|
* testcurl.1: update URLsDaniel Stenberg2016-10-221-4/+4
|
* test14xx: fixed --libcurl output tests again after 8e8afa82cbbDaniel Stenberg2016-10-189-0/+9
|
* test557: verify printf() with 128 and 129 argumentsDaniel Stenberg2016-10-081-0/+104
|
* tests: Fix a small typo in the tests README (#1060)Daniel Gustafsson2016-10-081-1/+1
| | | | The subdirectory for logs in tests/ is named log/ without an 's' at the end.
* cookies: same domain handling changed to match browser behaviorSergei Kuzmin2016-10-031-22/+32
| | | | | | | | | | | | | | Cokie with the same domain but different tailmatching property are now considered different and do not replace each other. If header contains following lines then two cookies will be set: Set-Cookie: foo=bar; domain=.foo.com; expires=Thu Mar 3 GMT 8:56:27 2033 Set-Cookie: foo=baz; domain=foo.com; expires=Thu Mar 3 GMT 8:56:27 2033 This matches Chrome, Opera, Safari, and Firefox behavior. When sending stored tokens to foo.com Chrome, Opera, Firefox store send them in the stored order, while Safari pre-sort the cookies. Closes #1050
* New libcurl option to keep sending on errorMichael Kaufmann2016-09-224-0/+279
| | | | | | | | | | | | Add the new option CURLOPT_KEEP_SENDING_ON_ERROR to control whether sending the request body shall be completed when the server responds early with an error status code. This is suitable for manual NTLM authentication. Reviewed-by: Jay Satiro Closes https://github.com/curl/curl/pull/904
* docs: Remove that --proto is just used for initial retrievalJay Satiro2016-09-212-1/+64
| | | | | | | | | .. and add that --proto-redir and CURLOPT_REDIR_PROTOCOLS do not override protocols denied by --proto and CURLOPT_PROTOCOLS. - Add a test to enforce: --proto deny must override --proto-redir allow Closes https://github.com/curl/curl/pull/1031
* easy: Reset all statistical session info in curl_easy_resetJay Satiro2016-09-204-2/+135
| | | | | Bug: https://github.com/curl/curl/issues/1017 Reported-by: Jeroen Ooms