summaryrefslogtreecommitdiff
path: root/tests/request.t
Commit message (Collapse)AuthorAgeFilesLines
* [tests] _WIN32 adjustments in LightyTest.pmGlenn Strauss2023-05-031-1/+2
| | | | separate cygwin paths from Windows native paths
* [tests] adjust outdated opt in tests/lighttpd.confGlenn Strauss2023-02-041-1/+1
| | | | | | adjust outdated setting in tests/lighttpd.conf (modern pdf clients properly handle range requests)
* [tests] quickly exit tests/request.t if GET / failGlenn Strauss2023-02-041-1/+1
| | | | | | quickly exit tests/request.t if "GET /" fails, without running further tests. Also, attempt to shutdown test server so that it is not left running on platforms which use different signals (e.g. Windows)
* [tests] fix "deflate" tests for added zlib headerGlenn Strauss2023-01-011-2/+2
|
* [multiple] remove deprecated modulesGlenn Strauss2022-11-301-191/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove deprecated modules: mod_evasive mod_secdownload mod_uploadprogress mod_usertrack These scheduled lighttpd behavior changes have been announced over the past year: * Continue gradual deprecation of "mini-application" lighttpd modules for which mod_magnet lua implementations are better and more flexible. Please post on lighttpd forums to share feedback if you use these modules. Forums: https://redmine.lighttpd.net/projects/lighttpd/boards * Deprecated: mod_evasive has been removed. mod_evasive can be replaced by mod_magnet and a few lines of lua: Replacement: https://wiki.lighttpd.net/ModMagnetExamples#lua-mod_evasive https://wiki.lighttpd.net/AbsoLUAtion#Fight-DDoS https://wiki.lighttpd.net/AbsoLUAtion#Mod_Security * Deprecated: mod_secdownload has been removed. mod_secdownload can be replaced by mod_magnet and a few lines of lua: Replacement: https://wiki.lighttpd.net/ModMagnetExamples#lua-mod_secdownload mod_secdownload historically uses insecure MD5 though SHA1, SHA256 available * Deprecated: mod_uploadprogress has been removed. mod_uploadprogress can be replaced by mod_magnet and a few lines of lua: Replacement: https://wiki.lighttpd.net/ModMagnetExamples#lua-mod_uploadprogress * Deprecated: mod_usertrack has been removed. mod_usertrack can be replaced by mod_magnet and a few lines of lua: Replacement: https://wiki.lighttpd.net/ModMagnetExamples#lua-mod_usertrack mod_usertrack historically uses insecure MD5.
* [tests] able to run tests when built w/o pcreGlenn Strauss2022-04-081-1/+1
| | | | | | perl test framework now runs most tests even when lighttpd has been built without pcre support, though some tests which rely on regex are skipped (tests/core-condition.t)
* [core] permit env w/ blank value (fix regression)Glenn Strauss2022-03-091-1/+19
| | | | | | | | | | (thx Lars Bingchong) empty env var must be set to blank string and not left unset (regression in lighttpd 1.4.56 - lighttpd 1.4.64) x-ref: https://stackoverflow.com/a/52913064/1338888
* [tests] mod_ssi tests moved to src/t/test_mod_ssiGlenn Strauss2021-11-121-28/+1
| | | | remove mod_ssi Perl tests now performed by src/t/test_mod_ssi
* [tests] t/test_mod_indexfileGlenn Strauss2021-09-081-18/+1
| | | | | | also remove some now-redundant tests from request.t and reduce scripts and directories under tests (because automake is sloooow and the fewer dirs, the better)
* [tests] combine *.t using tests/lighttpd.confGlenn Strauss2021-09-041-2/+1358
| | | | | | | | combine tests/*.t using tests/lighttpd.conf into tests/request.t Platforms which are horrifically slow starting processes (e.g. Windows) take much more time to start and stop lighttpd many times for independent *.t instances run through the Perl Test::More framework
* [tests] t/test_mod_staticfileGlenn Strauss2021-09-041-54/+2
| | | | move some tests from tests/request.t to src/t/test_mod_staticfile.c
* [tests] mv tests from request.t to test_request.cGlenn Strauss2021-08-271-27/+1
| | | | move some tests from tests/*.t to src/t/test_request.c
* [tests] use generated date in HTTP If conditionalsGlenn Strauss2021-08-271-6/+8
| | | | | | | | | | replace hard-coded date in HTTP If conditional tests x-ref: "Make tests pass after 2035" https://github.com/lighttpd/lighttpd1.4/pull/106 github: closes #106
* [core] RFC 7233 Range handling for non-streamingGlenn Strauss2021-03-021-6/+15
| | | | | | | RFC 7233 Range handling for all non-streaming responses, including (non-streaming) dynamic responses (previously Range responses handled only for static files)
* [tests] consolidate some tests/ contentGlenn Strauss2020-12-271-9/+9
|
* [tests] remove FastCGI test dependency on PHPGlenn Strauss2020-12-231-1/+8
|
* [core] coalesce nearby ranges in Range requestsGlenn Strauss2020-10-191-27/+49
| | | | Range requests must be HTTP/1.1 or later (not HTTP/1.0)
* [core] update HTTP status codes list from IANAGlenn Strauss2020-10-111-4/+4
|
* [core] reject WS following header field-name (fixes #2985)Glenn Strauss2020-01-261-11/+1
| | | | | | | | | | | | | | | | | | reject whitespace following request header field-name and before colon Such whitespace is forbidden in RFC 7230 Section 3.2.4. strict header parsing is enabled by default in lighttpd. However, if explicitly disabled in lighttpd.conf, lighttpd will continue to accept (and re-format) such field-names before passing to any backend. UNSAFE: server.http-parseopts = ( "header-strict" => "disable" ) This is NOT RECOMMENDED since doing so disables other protections provided by lighttpd strict http header parsing. (thx fedormixalich) x-ref: stricter request header parsing https://redmine.lighttpd.net/issues/2985
* [core] http_status_append()Glenn Strauss2018-09-231-4/+4
|
* [core] security: use-after-free invalid Range reqGlenn Strauss2018-08-121-1/+21
| | | | (thx Marcus Wengelin)
* [tests] test_request unit testsGlenn Strauss2018-08-051-87/+1
| | | | | | unit tests for request processing collect existing request processing tests from Perl tests/*.t (test_request.c runs *much* more quickly than Perl tests/*.t)
* [core] fix POST with chunked request body (fixes #2854)Glenn Strauss2018-01-131-1/+17
| | | | | | | | (thx the_jk) x-ref: "chunked transfer encoding in request body only works for tiny chunks" https://redmine.lighttpd.net/issues/2854
* [core] support Expect: 100-continue with HTTP/1.1 (fixes #377, #1017, #1953, ↵Glenn Strauss2017-01-311-2/+9
| | | | | | | | | | | | | | | | | | | #2438) support Expect: 100-continue with HTTP/1.1 requests Ignore config option server.reject-expect-100-with-417; server.reject-expect-100-with-417 will be removed in a future release. x-ref: "Incorrect handling of the 100 (Continue) Status" https://redmine.lighttpd.net/issues/377 "'Expect' header gives HTTP error 417" https://redmine.lighttpd.net/issues/1017 "Improve DAV support to be able to handle git as a client" https://redmine.lighttpd.net/issues/1953 "Change server.reject-expect-100-with-417 from flag to regular expression matching the URL" https://redmine.lighttpd.net/issues/2438
* [core] support Transfer-Encoding: chunked req body (fixes #2156)Glenn Strauss2016-12-161-1/+116
| | | | | | | | | | | | | | | support Transfer-Encoding: chunked request body in conjunction with server.stream-request-body = 0 dynamic handlers will still return 411 Length Required if server.stream-request-body = 1 or 2 (!= 0) since CGI-like env requires CONTENT_LENGTH be set (and mod_proxy currently sends HTTP/1.0 requests to backends, and Content-Length recommended for robust interaction with backend) x-ref: "request: support Chunked Transfer Coding for HTTP PUT" https://redmine.lighttpd.net/issues/2156
* [tests] add cleanup.sh to cmake test runs, reset SLOWREQUEST in request.tStefan Bühler2014-01-101-0/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2932 152afb58-edef-0310-8abb-c4023f1b3aa9
* tests: check different combination of empty values, leading/trailing spaces ↵Stefan Bühler2012-11-211-1/+57
| | | | | | and commas in the Connection header git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2859 152afb58-edef-0310-8abb-c4023f1b3aa9
* Add static-file.disable-pathinfo option to prevent handling of urls like ↵Stefan Bühler2011-08-301-1/+17
| | | | | | .../secret.php/image.jpg as static file git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2803 152afb58-edef-0310-8abb-c4023f1b3aa9
* two additional test cases for absolute http(s) uris in the request lineStefan Bühler2011-04-041-1/+16
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2787 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)Stefan Bühler2009-11-291-1/+10
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2696 152afb58-edef-0310-8abb-c4023f1b3aa9
* Ignore multiple "If-None-Match" headers (only use first one, fixes #753)Stefan Bühler2009-06-111-1/+1
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2528 152afb58-edef-0310-8abb-c4023f1b3aa9
* Allow all http status codes by default; disable body only for 204,205 and ↵Stefan Bühler2008-04-231-1/+1
| | | | | | 304; generate error pages for 4xx and 5xx (#1639) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2154 152afb58-edef-0310-8abb-c4023f1b3aa9
* - change s/// separator that it doesn't confuse vimElan Ruusamäe2008-01-151-4/+4
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2027 152afb58-edef-0310-8abb-c4023f1b3aa9
* fixed timestamps for 32bit time_t which wraps at 2038Jan Kneschke2007-08-211-6/+6
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1956 152afb58-edef-0310-8abb-c4023f1b3aa9
* fixed handling of duplicate If-Modified-Since to return 304Jan Kneschke2007-08-181-4/+4
| | | | | | | - don't append the second string to the first, but free it instead git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1947 152afb58-edef-0310-8abb-c4023f1b3aa9
* don't send a Content-Length for 1xx, 204 and 304 (fixes #1002)Jan Kneschke2007-08-181-1/+9
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1946 152afb58-edef-0310-8abb-c4023f1b3aa9
* added testcases for #1286 and #1287Jan Kneschke2007-08-171-2/+35
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1929 152afb58-edef-0310-8abb-c4023f1b3aa9
* - a few more whitespace cleanupsMarcus Rückert2006-10-051-1/+1
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1374 152afb58-edef-0310-8abb-c4023f1b3aa9
* OPTIONS may have a content-lengthJan Kneschke2006-03-041-1/+1
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1024 152afb58-edef-0310-8abb-c4023f1b3aa9
* added tests for possible crashesJan Kneschke2006-02-011-1/+9
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@974 152afb58-edef-0310-8abb-c4023f1b3aa9
* forbid Content-Length for GET, HEAD or OPTIONS requestsJan Kneschke2006-01-031-1/+39
| | | | | | | allow duplicate If-Modified-Since headers if they are equal git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@907 152afb58-edef-0310-8abb-c4023f1b3aa9
* the range-request options was not handled at all, added test caseJan Kneschke2005-10-051-1/+9
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@781 152afb58-edef-0310-8abb-c4023f1b3aa9
* find perl at runtimeJan Kneschke2005-09-011-1/+1
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@670 152afb58-edef-0310-8abb-c4023f1b3aa9
* added tests for keep-alive and setenv and passed a ARRAY ref instead of a ↵Jan Kneschke2005-08-311-29/+29
| | | | | | HASH ref git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@654 152afb58-edef-0310-8abb-c4023f1b3aa9
* switch to LigtyTest modulelighttpd-1.3.14Jan Kneschke2005-06-261-0/+6
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@394 152afb58-edef-0310-8abb-c4023f1b3aa9
* Unified all tests to use the LighyTest framework Jan Kneschke2005-06-151-261/+83
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@388 152afb58-edef-0310-8abb-c4023f1b3aa9
* seperated the tests for each section and let run-tests.pl use Test::HarnessJan Kneschke2005-03-021-0/+470
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@72 152afb58-edef-0310-8abb-c4023f1b3aa9