summaryrefslogtreecommitdiff
path: root/tests/data
Commit message (Collapse)AuthorAgeFilesLines
* proxy: re-use proxy connections (regression)Daniel Stenberg2015-03-112-1/+73
| | | | | | | | | | When checking for a connection to re-use, a proxy-using request must check for and use a proxy connection and not one based on the host name! Added test 1421 to verify Bug: http://curl.haxx.se/bug/view.cgi?id=1492
* unit1601: MD5 unit testsDaniel Stenberg2015-02-032-1/+27
|
* unit1600: unit test for Curl_ntlm_core_mk_nt_hashDaniel Stenberg2015-02-031-0/+2
|
* unit1600: NTLM unit testDaniel Stenberg2015-02-031-0/+27
|
* test1135: verify the CURL_EXTERN order in header filesDaniel Stenberg2015-02-022-1/+94
|
* tests: Grouped SMTP SASL EXTERNAL tests with other SMTP testsSteve Holme2015-01-285-10/+10
|
* tests: Grouped POP3 SASL EXTERNAL tests with other POP3 testsSteve Holme2015-01-285-10/+11
|
* tests: Grouped IMAP SASL EXTERNAL tests with other IMAP testsSteve Holme2015-01-285-11/+11
|
* test: add test cases for sasl external authentication (imap/pop3/smtp).Patrick Monnerat2015-01-2713-1/+674
|
* tests: make sure CRLFs can't be used in URLs passed to proxyDaniel Stenberg2015-01-072-2/+45
| | | | Bug: http://curl.haxx.se/docs/adv_20150108B.html
* test1520: Fixed initial teething problemsSteve Holme2014-12-281-1/+5
| | | | | | | * Missing initialisation of upload status caused a seg fault * Missing data termination caused corrupt data to be uploaded * Data verification should be performed in <upload> element * Added missing recipient list cleanup
* tests: Added test for bug #1456Steve Holme2014-12-282-0/+61
|
* code/docs: Use Unix rather than UNIX to avoid use of the trademarkSteve Holme2014-12-2614-14/+14
| | | | | Use Unix when generically writing about Unix based systems as UNIX is the trademark and should only be used in a particular product's name.
* tests: add two HTTP over UNIX socket testsPeter Wu2014-12-043-1/+133
| | | | | | | | | | | test1435: a simple test that checks whether a HTTP request can be performed over the UNIX socket. The hostname/port are interpreted by sws and should be ignored by cURL. test1436: test for the ability to do two requests to the same host, interleaved with one to a different hostname. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* curl tool: Enable support for the SMB protocolBill Nagel2014-11-301-1/+0
| | | | This patch enables SMB/CIFS support in the curl command-line tool.
* tests: Disable test 1013 until SMB is fully addedSteve Holme2014-11-291-0/+1
|
* tests: Added SMTP with --crlf test caseSteve Holme2014-11-262-1/+67
|
* SSL: Add PEM format support for public key pinningmoparisthebest2014-11-245-3/+105
|
* test1801: first real http2 test caseDaniel Stenberg2014-11-202-1/+67
|
* test1800: first plain-text http2 test caseDaniel Stenberg2014-11-202-0/+57
| | | | Verifies the upgrade request, but gets a plain 1.1 response
* test22: expand a backtick commandPeter Wu2014-11-131-1/+1
| | | | | | | | This is the only user of the backtick operator in the command. As the commands will soon not be executed by a shell anymore (but by perl), replace the command with its output. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* test552: Don't run HTTP digest tests for SSPI based buildsDan Fandrich2014-11-061-0/+0
| | | | | Technical difficulties prevented this from going into the previous commit.
* tests: Don't run HTTP digest tests for SSPI based buildsSteve Holme2014-11-0632-0/+41
| | | | | | | Added !SSPI to the features list of the HTTP digest tests, as SSPI based builds now use the Windows SSPI messaging API rather than the internal functions, and we can't control the random numbers that get used as part of the digest.
* tests: add new feature 'SSLpinning'Daniel Stenberg2014-11-042-0/+2
| | | | | ... and make test 2034 and 2035 require it, and have it set when built with OpenSSL or GnuTLS.
* resume: consider a resume from [content-length] to be OKDaniel Stenberg2014-11-013-4/+94
| | | | | | | | | | | | Basically since servers often then don't respond well to this and instead send the full contents and then libcurl would instead error out with the assumption that the server doesn't support resume. As the data is then already transfered, this is now considered fine. Test case 1434 added to verify this. Test case 1042 slightly modified. Reported-by: hugo Bug: http://curl.haxx.se/bug/view.cgi?id=1443
* HTTP: return larger than 3 digit response codes tooDaniel Stenberg2014-10-276-1/+299
| | | | | | | | | | | HTTP 1.1 is clearly specified to only allow three digit response codes, and libcurl used sscanf("%3d") for that purpose. This made libcurl support smaller numbers but not larger. It does now, but we will not make any specific promises nor document this further since it is going outside of what HTTP is. Bug: http://curl.haxx.se/bug/view.cgi?id=1441 Reported-by: Balaji
* Added the "flaky" keyword to a number of testsDan Fandrich2014-10-266-0/+6
| | | | | | Each shows evidence of flakiness on at least one platform on the autobuilds. Users can use this keyword to skip these tests if desired.
* test545: make it not use a trailing zeroDaniel Stenberg2014-10-161-0/+0
| | | | | | CURLOPT_COPYPOSTFIELDS with a given CURLOPT_POSTFIELDSIZE does not require a trailing zero of the data and by making sure this test doesn't use one we know it works (combined with valgrind).
* tests: move TESTCASES to Makefile.inc, add show for cmakePeter Wu2014-10-133-137/+168
| | | | | | | | | | | | This change allows runtests.pl to be run from the CMake builddir: export srcdir=/tmp/curl/tests; perl -I$srcdir $srcdir/runtests.pl -l In order to make this possible, all test cases have been moved from Makefile.am to Makefile.inc. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* test2036: verify -O with no slash at all in the URLDaniel Stenberg2014-10-092-1/+40
| | | | | Similar to test 76 but that test's URL has a slash just no file name part.
* SSL: implement public key pinningmoparisthebest2014-10-073-1/+101
| | | | | | | | | | | | Option --pinnedpubkey takes a path to a public key in DER format and only connect if it matches (currently only implemented with OpenSSL). Provides CURLOPT_PINNEDPUBLICKEY for curl_easy_setopt(). Extract a public RSA key from a website like so: openssl s_client -connect google.com:443 2>&1 < /dev/null | \ sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -noout -pubkey \ | openssl rsa -pubin -outform DER > google.com.der
* CURLOPT_COOKIELIST: Added "RELOAD" commandYousuke Kimoto2014-09-251-8/+32
|
* cookies: reject incoming cookies set for TLDsDaniel Stenberg2014-09-101-0/+1
| | | | | | | | | Test 61 was modified to verify this. CVE-2014-3620 Reported-by: Tim Ruehsen URL: http://curl.haxx.se/docs/adv_20140910B.html
* cookies: only use full host matches for hosts used as IP addressTim Ruehsen2014-09-103-30/+31
| | | | | | | | | | | 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
* Ensure progress.size_dl/progress.size_ul are always >= 0Brandon Casey2014-09-072-8/+9
| | | | | | | | | | | | | | | | | | | | 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>
* tests: Added test1420 to the makefileSteve Holme2014-09-071-1/+1
|
* test1420: Removed unnecessary CURLOPT settingSteve Holme2014-09-071-1/+0
|
* tests: Added more "Clear Text" authentication keywordsSteve Holme2014-09-072-0/+2
|
* tests: Updated "based on" text due to email test renumberingSteve Holme2014-09-072-2/+2
|
* tests: For consistency added --libcurl to test nameSteve Holme2014-09-074-4/+4
|
* tests: Added --libcurl for IMAP test caseSteve Holme2014-09-071-0/+108
|
* http: fix the Content-Range: parserDaniel Stenberg2014-08-151-1/+17
| | | | | | | | | ... 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
* tests: Fix a couple of incomplete response linesFabian Keil2014-07-263-5/+5
|
* test506: verify aa6884845168Daniel Stenberg2014-07-161-16/+14
| | | | | After the fixed cookie lock deadlock, this test now passes and it detects double-locking and double-unlocking of mutexes.
* test320: strip off the actual negotiated cipher widthDan Fandrich2014-07-151-4/+5
| | | | | It's irrelevant to the test, and will change depending on which SSL library is being used by libcurl.
* tests: added globbing keyword to URL globbing testsDan Fandrich2014-07-129-0/+11
|
* tests: adjust for capitalization differences in newer gnutls-servDan Fandrich2014-07-111-2/+3
|
* test320/1/2/4: fix the port number substitution variablesDan Fandrich2014-07-114-5/+5
| | | | These tests have been broken since commit 1958fe57 in Oct. 2011
* sasl: Added back qop argument mistakenly removed in e95ca7ceDan Fandrich2014-06-153-6/+6
| | | | This caused segfaults on tests 823 869 907.
* test1398: Added test to Makefile.amDan Fandrich2014-06-151-1/+1
|