summaryrefslogtreecommitdiff
path: root/tests/data/test506
Commit message (Collapse)AuthorAgeFilesLines
* tests: use %TESTNUMBER instead of fixed numberDaniel Stenberg2021-03-191-3/+3
| | | | | | | This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
* tests: fixup several testsFabian Keil2021-02-091-3/+3
| | | | | | | | | | | | | | missing CRs and modified %hostip lib556/test556: use a real HTTP version to make test reuse more convenient make sure the weekday in Date headers matches the date test61: replace stray "^M" (5e 4d) at the end of a cookie with a '^M' (0d) Gets the test working with external proxies like Privoxy again. Closes #6463
* test506: make it not run in c-ares buildsDaniel Stenberg2020-11-261-2/+3
| | | | | | | | As the asynch nature of it may trigger events in another order. A c-ares upgrade made it break. Reported-by: Marc Hörsken Fixes #6247
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* cookies: using a share with cookies shouldn't enable the cookie engineDaniel Stenberg2019-09-281-57/+61
| | | | | | | | | | | | | | | | | The 'share object' only sets the storage area for cookies. The "cookie engine" still needs to be enabled or activated using the normal cookie options. This caused the curl command line tool to accidentally use cookies without having been told to, since curl switched to using shared cookies in 7.66.0. Test 1166 verifies Updated test 506 Fixes #4429 Closes #4434
* tests: add stderr comparison to the test suiteFrank Gevaerts2019-02-111-3/+0
| | | | | | | | | | The code is more or less copied from the stdout comparison code, maybe some better reuse is possible. test 1457 is adjusted to make the output actually match (by using --silent) test 506 used <stderr> without actually needing it, so that <stderr> block is removed Closes #3536
* cookies: support creation-time attribute for cookiesDaniel Gustafsson2018-08-311-14/+14
| | | | | | | | | | | | | | According to RFC6265 section 5.4, cookies with equal path lengths SHOULD be sorted by creation-time (earlier first). This adds a creation-time record to the cookie struct in order to make cookie sorting more deterministic. The creation-time is defined as the order of the cookies in the jar, the first cookie read fro the jar being the oldest. The creation-time is thus not serialized into the jar. Also remove the strcmp() matching in the sorting as there is no lexicographic ordering in RFC6265. Existing tests are updated to match. Closes #2524
* multi_done: prune DNS cacheDaniel Stenberg2017-12-101-47/+53
| | | | | | | | | | | | | Prune the DNS cache immediately after the dns entry is unlocked in multi_done. Timed out entries will then get discarded in a more orderly fashion. Test506 is updated Reported-by: Oleg Pudeyev Fixes #2169 Closes #2170
* cookies: use lock when using CURLINFO_COOKIELISTPavel P2017-09-191-7/+9
| | | | Closes #1896
* test506: skip if threaded-resolverDaniel Stenberg2017-07-061-0/+5
|
* 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
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* CURLOPT_COOKIELIST: Added "RELOAD" commandYousuke Kimoto2014-09-251-8/+32
|
* 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.
* testsuite: use binary output mode for custom curl test toolsMarc Hoersken2014-02-141-1/+1
| | | | | | | | | | | Do not try to convert line-endings to CRLF on Windows by setting stdout to binary mode, just like the curl tool does if --ascii is not specified. This should prevent corrupted stdout line-ending output like CRCRLF. In order to make the previously naive text-aware tests work with binary mode on Windows, text-mode is disabled for them if it is not actually part of the test case and line-endings are corrected.
* test506: verify that CURLOPT_COOKIELIST takes share lockBenjamin Gilbert2013-06-171-31/+60
| | | | It doesn't right now: http://curl.haxx.se/bug/view.cgi?id=1215
* always-multi: always use non-blocking internalsDaniel Stenberg2013-01-171-40/+34
| | | | | | | | | | Remove internal separated behavior of the easy vs multi intercace. curl_easy_perform() is now using the multi interface itself. Several minor multi interface quirks and bugs have been fixed in the process. Much help with debugging this has been provided by: Yang Tse
* cookies: change the URL in the cookie jar file headerDaniel Stenberg2012-07-031-1/+1
|
* Changed the test data file so it passes an XML syntax checkDan Fandrich2008-09-151-62/+62
|
* - I'm abandoning the system with the web site mirrors (but keeping downloadDaniel Stenberg2008-08-281-1/+1
| | | | | files bing mirrored) and thus I've changed the URL in the cookiejar header to no longer use curlm.haxx.se but instead use the main site curl.haxx.se
* updated according to the name resolve race condition fix just committedDaniel Stenberg2008-03-111-33/+29
|
* Added some <keywords> sections and use some key words more consistently.Dan Fandrich2007-10-121-0/+9
|
* Force the time zone to GMT in the cookie tests in case the user isDan Fandrich2007-07-101-0/+6
| | | | | | using one of the so-called 'right' time zones that take into account leap seconds, which causes the tests to fail (as reported by Daniel Black in bug report #1745964).
* Gerrit Bruchhäuser pointed out a warning that the Intel(R) Thread CheckerDaniel Stenberg2007-06-211-31/+37
| | | | | tool reports and it was indeed a legitimate one and it is one fixed. It was a use of a share without doing the proper locking first.
* Year 2038 has its own problems (32 bit integer overflow).Yang Tse2007-02-051-12/+12
| | | | So cookie expiration date is lowered to expire at most in 2035.
* more fixes for the testsuite cookie expiration issueYang Tse2007-02-021-3/+3
|
* cookie expiration time got us with pants at our knees.Yang Tse2007-02-021-5/+5
| | | | Next time in 2038 :-)
* Convert (most of) the test data files into genuine XML. A handful stillDan Fandrich2007-01-231-0/+2
| | | | | | are not, due mainly to the lack of support for XML character entities (e.g. & => &amp; ). This will make it easier to validate test files using tools like xmllint, as well as edit and view them using XML tools.
* As reported in bug: #1566077 the former URL mentioned in the generated cookieDaniel Stenberg2006-09-271-1/+1
| | | | jar has died and we now instead point out our own version of that
* tests/libtest/lib506.c version 1.11 is now also logging CURLSHOPT_LOCKFUNC, ↵Yang Tse2006-07-171-0/+3
| | | | CURLSHOPT_UNLOCKFUNC and CURLSHOPT_USERDATA, so we now also have to check them here.
* Andres Garcia's text mode fix for the 'data' partDaniel Stenberg2005-06-031-3/+3
|
* adjusted to the moved unlock of the DNS entryDaniel Stenberg2005-01-281-6/+6
|
* Made the dns entry remain locked while a connection to the host remains toDaniel Stenberg2004-10-041-24/+28
| | | | | allow verbose output during this period. Bertrand Demiddelaer reported and helped fixing.
* 1. cookie expire-strings MUST use GMT timezonesDaniel Stenberg2004-09-111-12/+12
| | | | 2. adjusted date strings to upcoming date parser rewrite
* Now the test servers and test cases can run on a custom port number. There'sDaniel Stenberg2004-09-081-2/+2
| | | | | | no fixed port numbers in use anymore. Starting now, the default ports the servers use are 8990 - 8993. There's no option to modify these yet, but changing the $base option in the top of the runtests.pl script.
* modified and corrected test 506Daniel Stenberg2003-12-161-50/+56
|
* Dirk Manske made the share-locking around DNS lookups a bit "looser" so thatDaniel Stenberg2003-10-121-0/+2
| | | | | | | multiple DNS lookups can run simultaneously faster. The downside is that resolving the same host name now can be made at once from multiple threads, but the upside is that threads now don't alwys have to wait for the others' resolves. Test case 506 updated accordingly.
* test case 506 added, written by Dirk ManskeDaniel Stenberg2003-08-111-0/+147