summaryrefslogtreecommitdiff
path: root/tests/data/test46
Commit message (Collapse)AuthorAgeFilesLines
* tests: allow tests to pass by 2037-02-12Bernhard M. Wiedemann2019-01-081-4/+4
| | | | | | similar to commit f508d29f3902104018 Closes #3443
* cookies: support creation-time attribute for cookiesDaniel Gustafsson2018-08-311-8/+8
| | | | | | | | | | | | | | 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
* test 46: make test pass after 2025Bernhard M. Wiedemann2018-06-121-4/+4
| | | | | | | | | shifting the expiry date to 2037 for now to be before the possibly problematic year 2038 similar in spirit to commit e6293cf8764e9eecb Closes #2646
* cookie: case-insensitive hashing for the domainsLauri Kasanen2018-04-061-1/+1
| | | | closes #2458
* cookie: fix and optimize 2nd top level domain name extractionPatrick Monnerat2018-04-041-14/+14
| | | | | | | | | | | This fixes a segfault occurring when a name of the (invalid) form "domain..tld" is processed. test46 updated to cover this case. Follow-up to commit c990ead. Ref: https://github.com/curl/curl/pull/2440
* cookie: store cookies per top-level-domain-specific hash tableLauri Kasanen2018-04-021-2/+2
| | | | | | This makes libcurl handle thousands of cookies much better and speedier. Closes #2440
* cookies: reject oversized cookiesDaniel Stenberg2017-09-181-2/+2
| | | | | | | | | | | | | | | | | | ... instead of truncating them. There's no fixed limit for acceptable cookie names in RFC 6265, but the entire cookie is said to be less than 4096 bytes (section 6.1). This is also what browsers seem to implement. We now allow max 5000 bytes cookie header. Max 4095 bytes length per cookie name and value. Name + value together may not exceed 4096 bytes. Added test 1151 to verify Bug: https://curl.haxx.se/mail/lib-2017-09/0062.html Reported-by: Kevin Smith Closes #1894
* test46: change cookie expiry dateDaniel Stenberg2016-03-061-4/+4
| | | | | | | Since two of the cookies would now otherwise expire and cause the test to fail after commit 20de9b4f09 Discussed in #697
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-2/+2
|
* test46: update cookie expire timeDaniel Stenberg2015-08-101-4/+4
| | | | ... since it went old and thus was expired and caused the test to fail!
* cookies: only consider full path matchesYAMADA Yasuharu2013-05-181-4/+4
| | | | | | | | | | | | | | | | I found a bug which cURL sends cookies to the path not to aim at. For example: - cURL sends a request to http://example.fake/hoge/ - server returns cookie which with path=/hoge; the point is there is NOT the '/' end of path string. - cURL sends a request to http://example.fake/hogege/ with the cookie. The reason for this old "feature" is because that behavior is what is described in the original netscape cookie spec: http://curl.haxx.se/rfc/cookie_spec.html The current cookie spec (RFC6265) clarifies the situation: http://tools.ietf.org/html/rfc6265#section-5.2.4
* Do not mix CRLF and LF header endings in a couple of HTTP testsFabian Keil2012-11-191-11/+11
| | | | | | | | | | | | Consistently use CRLF instead. The mixed endings weren't documented so I assume they were unintentional. This change doesn't matter for curl itself but makes using the tests with a proxy between curl and the test server more convenient. Tests that consistently use no carriage returns were left unmodified as one can easily work around this.
* test 46: use different path lengths to get reliable sort orderDaniel Stenberg2012-07-091-4/+4
| | | | | | | | Since the order of the cookies is sorted by the length of the paths, having them on the same path length will make the test depend on what order the qsort() implementation will put them. As seen in the windows/msys output posted by Guenter in this posting: http://curl.haxx.se/mail/lib-2012-07/0105.html
* cookies: change the URL in the cookie jar file headerDaniel Stenberg2012-07-031-2/+2
|
* - I'm abandoning the system with the web site mirrors (but keeping downloadDaniel Stenberg2008-08-281-2/+2
| | | | | 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
* Added test case 1024 to test a scenario similar to the one reportedDan Fandrich2008-04-101-2/+3
| | | | | by Ben Combee where libcurl would send the wrong cookie to a redirected server. libcurl was doing the right thing in this test case.
* - Niklas Angebrand made the cookie support in libcurl properly deal with theDaniel Stenberg2008-01-311-1/+3
| | | | | | | "HttpOnly" feature introduced by Microsoft and apparently also supported by Firefox: http://msdn2.microsoft.com/en-us/library/ms533046.aspx . HttpOnly is now supported when received from servers in HTTP headers, when written to cookie jars and when read from existing cookie jars.
* Added variable substitution to the <verify><file> section.Dan Fandrich2007-09-201-9/+9
| | | | Made a few more tests work remotely.
* Replaced 127.0.0.1 with %HOSTIP where possibleDan Fandrich2007-09-141-1/+1
|
* 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).
* Year 2038 has its own problems (32 bit integer overflow).Yang Tse2007-02-051-2/+2
| | | | So cookie expiration date is lowered to expire at most in 2035.
* fix leftover updating cookie expiration dateYang Tse2007-02-021-1/+1
|
* reported in bug: #1566077 the former URL mentioned in the generated cookieYang Tse2007-02-021-2/+2
| | | | jar has died and we now instead point out our own version of that
* more fixes for the testsuite cookie expiration issueYang Tse2007-02-021-1/+1
|
* cookie expiration time got us with pants at our knees.Yang Tse2007-02-021-1/+1
| | | | Next time in 2038 :-)
* Convert (most of) the test data files into genuine XML. A handful stillDan Fandrich2007-01-231-1/+3
| | | | | | 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
* how silly, the cookie expired! ;-)Daniel Stenberg2006-02-061-2/+2
|
* Andres Garcia's mode=text patch to make these do fine on WindowsDaniel Stenberg2005-05-241-1/+1
|
* Modified the default HTTP headers used by libcurl:Daniel Stenberg2005-05-111-1/+0
| | | | | | | | | | | | | | | | A) Normal non-proxy HTTP: - no more "Pragma: no-cache" (this only makes sense to proxies) B) Non-CONNECT HTTP request over proxy: - "Pragma: no-cache" is used (like before) - "Proxy-Connection: Keep-alive" (for older style 1.0-proxies) C) CONNECT HTTP request over proxy: - "Host: [name]:[port]" - "Proxy-Connection: Keep-alive"
* keywords addedDaniel Stenberg2005-04-221-0/+8
|
* 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.
* extended to include a cookie with 4998 bytes of contentDaniel Stenberg2004-06-221-0/+2
|
* Modified the default HTTP Accept: header to only be Accept: */*Daniel Stenberg2004-02-091-1/+1
|
* added test 79, a basic test that fetches an FTP URL over a HTTP proxyDaniel Stenberg2003-08-111-1/+5
|
* modified to work fine with the new persistant connection working test suiteDaniel Stenberg2003-07-191-1/+1
| | | | HTTP server
* Each test case now specifies which server(s) it needs, without relying on theDaniel Stenberg2003-04-301-0/+3
| | | | test number.
* use the correct time in the cookie jarDaniel Stenberg2002-02-271-1/+1
|
* modified cookie expire dateDaniel Stenberg2002-02-261-2/+2
|
* updated the cookiejar commentDaniel Stenberg2001-10-081-1/+1
|
* Added test 46, cookie jar functionalityDaniel Stenberg2001-09-261-0/+62