aboutsummaryrefslogtreecommitdiff
path: root/tests/data
AgeCommit message (Collapse)Author
2014-09-10cookies: only use full host matches for hosts used as IP addressTim Ruehsen
By not detecting and rejecting domain names for partial literal IP addresses properly when parsing received HTTP cookies, libcurl can be fooled to both send cookies to wrong sites and to allow arbitrary sites to set cookies for others. CVE-2014-3613 Bug: http://curl.haxx.se/docs/adv_20140910A.html
2014-09-07Ensure progress.size_dl/progress.size_ul are always >= 0Brandon Casey
Historically the default "unknown" value for progress.size_dl and progress.size_ul has been zero, since these values are initialized implicitly by the calloc that allocates the curl handle that these variables are a part of. Users of curl that install progress callbacks may expect these values to always be >= 0. Currently it is possible for progress.size_dl and progress.size_ul to by set to a value of -1, if Curl_pgrsSetDownloadSize() or Curl_pgrsSetUploadSize() are passed a "size" of -1 (which a few places currently do, and a following patch will add more). So lets update Curl_pgrsSetDownloadSize() and Curl_pgrsSetUploadSize() so they make sure that these variables always contain a value that is >= 0. Updates test579 and test599. Signed-off-by: Brandon Casey <drafnel@gmail.com>
2014-09-07tests: Added test1420 to the makefileSteve Holme
2014-09-07test1420: Removed unnecessary CURLOPT settingSteve Holme
2014-09-07tests: Added more "Clear Text" authentication keywordsSteve Holme
2014-09-07tests: Updated "based on" text due to email test renumberingSteve Holme
2014-09-07tests: For consistency added --libcurl to test nameSteve Holme
2014-09-07tests: Added --libcurl for IMAP test caseSteve Holme
2014-08-15http: fix the Content-Range: parserDaniel Stenberg
... to handle "*/[total]". Also, removed the strange hack that made CURLOPT_FAILONERROR on a 416 response after a *RESUME_FROM return CURLE_OK. Reported-by: Dimitrios Siganos Bug: http://curl.haxx.se/mail/lib-2014-06/0221.html
2014-07-26tests: Fix a couple of incomplete response linesFabian Keil
2014-07-16test506: verify aa6884845168Daniel Stenberg
After the fixed cookie lock deadlock, this test now passes and it detects double-locking and double-unlocking of mutexes.
2014-07-15test320: strip off the actual negotiated cipher widthDan Fandrich
It's irrelevant to the test, and will change depending on which SSL library is being used by libcurl.
2014-07-12tests: added globbing keyword to URL globbing testsDan Fandrich
2014-07-11tests: adjust for capitalization differences in newer gnutls-servDan Fandrich
2014-07-11test320/1/2/4: fix the port number substitution variablesDan Fandrich
These tests have been broken since commit 1958fe57 in Oct. 2011
2014-06-15sasl: Added back qop argument mistakenly removed in e95ca7ceDan Fandrich
This caused segfaults on tests 823 869 907.
2014-06-15test1398: Added test to Makefile.amDan Fandrich
2014-06-11NTLM: set a fake entropy for debug builds with CURL_ENTROPY setDaniel Stenberg
Curl_rand() will return a dummy and repatable random value for this case. Makes it possible to write test cases that verify output. Also, fake timestamp with CURL_FORCETIME set. Only when built debug enabled of course. Curl_ssl_random() was not used anymore so it has been removed. Curl_rand() is enough. create_digest_md5_message: generate base64 instead of hex string curl_sasl: also fix memory leaks in some OOM situations
2014-06-11tests: Disabled NTLM tests for non-debug buildsSteve Holme
Added required "debug" feature, missed in commit 1c9aaa0bac, as NTLMv2 calls Curl_rand() which can only be fixed to a specific entropy in debug builds.
2014-06-01tests: Fixed up DIGEST-MD5 tests following commit eefeb73af4Steve Holme
2014-05-18test1134: verify CREDSPERREQUEST for HTTPDaniel Stenberg
Verifies that the change in 68f0166a92 works as intended and that different HTTP auth credentials to the same host still re-uses the connection properly.
2014-05-11tests: Fixed up DIGEST-MD5 tests following commit 8342b6e1dcSteve Holme
2014-05-09test87: Get rid of extraneous square brackets in tagDan Fandrich
2014-05-04mprintf: allow %.s with data not being zero terminatedDaniel Stenberg
If the precision is indeed shorter than the string, don't strlen() to find the end because that's not how the precision operator works. I also added a unit test for curl_msnprintf to make sure this works and that the fix doesn't a few other basic use cases. I found a POSIX compliance problem that I marked TODO in the unit test, and I figure we need to add more tests in the future. Reported-by: Török Edwin
2014-04-23test325: verify --proto-redir https=>httpDaniel Stenberg
2014-04-18test810: Updated to use new IMAP URL query string functionalitySteve Holme
2014-04-06tests: Disabled DIGEST-MD5 tests when running with SSPI enabledSteve Holme
2014-04-04PROXYHEADER: send these headers in "normal" proxy requests tooDaniel Stenberg
Updated the docs to clarify and the code accordingly, with test 1528 to verify: When CURLHEADER_SEPARATE is set and libcurl is asked to send a request to a proxy but it isn't CONNECT, then _both_ header lists (CURLOPT_HTTPHEADER and CURLOPT_PROXYHEADER) will be used since the single request is then made for both the proxy and the server.
2014-04-04test1428: verify --proxy-headerDaniel Stenberg
2014-04-04CURLOPT_HEADEROPT: addedDaniel Stenberg
Modified the logic so that CURLOPT_HEADEROPT now controls if PROXYHEADER is actually used or not.
2014-04-04CURLOPT_PROXYHEADER: set headers for proxy-onlyDaniel Stenberg
Includes docs and new test cases: 1525, 1526 and 1527 Co-written-by: Vijay Panghal
2014-04-04HTTP: don't send Content-Length: 0 _and_ Expect: 100-continueDaniel Stenberg
Without request body there's no point in asking for 100-continue. Bug: http://curl.haxx.se/bug/view.cgi?id=1349 Reported-by: JimS
2014-04-03tests: unified use of some keywordsDan Fandrich
2014-04-03tests: added some missing closing tagsDan Fandrich
2014-04-03tests: add keywords to the last 7 tests lacking themDaniel Stenberg
2014-04-01tests: Added SMTP with credientials test when not supported by serverSteve Holme
2014-03-31tests: Added SMTP with credentials test for RFC-821 based serverSteve Holme
Added SMTP (RFC-821 only) based test case as a reference for the fix provided by commit fe260b75e7.
2014-03-30curl: stop interpreting IPv6 literals as glob patterns.Paul Marks
This makes it possible to fetch from an IPv6 literal without specifying the -g option. Globbing remains available elsehwere in the URL. For example: curl http://[::1]/file[1-3].txt This creates no ambiguity, because there is no overlap between the syntax of valid globs and valid IPv6 literals. Globs contain hyphens and at most 1 colon, while IPv6 literals have no hyphens, and at least 2 colons. The peek_ipv6() parser simply whitelists a set of characters and counts colons, because the real validation happens later on. The character set includes A-Z, in case someone decides to implement support for scopes like [fe80::1%25eth0] in the future. Signed-off-by: Paul Marks <pmarks@google.com>
2014-03-30test938: Updated to use file input for uploadSteve Holme
As the second URL won't be passed input from stdin.
2014-03-30test836: Fixed incorrect username in expected outputSteve Holme
2014-03-30DISABLED: 836, 882 and 938 hangDaniel Stenberg
2014-03-30tests: remove trailing CRs from keywordsDaniel Stenberg
2014-03-30tests: Added email unit tests to verify login credential connection re-useSteve Holme
2014-03-30tests: Corrected "APOP" authentication keywordSteve Holme
2014-03-30tests: Replaced email authentication keywords with SASL based keywordsSteve Holme
As the email protocols implement SASL authentication rather than IMAP, POP3 and SMTP specific authentication, updated the authentication keywords to reflect this.
2014-03-30tests: Added "Clear Text" authentication keywordSteve Holme
2014-03-30tests: Added "SASL" authentication keywordSteve Holme
2014-03-26test815/816: Use authentication for both URLsDan Fandrich
The improved connection reuse logic would otherwise create a new connection for each one, which isn't supported by the test server, nor expected by the test.
2014-03-25test1397: unit test for certificate name wildcard handlingRichard J. Moore
2014-03-15tests: made the SASL modes separate keywordsDan Fandrich