]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-messaging: test reject-advanced-methods
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Nov 2026 18:07:51 +0000 (18:07 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Nov 2026 18:31:08 +0000 (19:31 +0100)
commitbef12a40c2b4d77e0736ddae44778f7605bb2b84
tree2d7d3870dd628c01833f8664d7a306f452e80612
parent3bba6379c65079f86ff2346a6442e0b8070e77d0
REGTESTS: http-messaging: test reject-advanced-methods

This adds the "reject-advanced-methods" check to the HTTP/1 and H2 test, in
its own profile on its own bind line, and TRACE and an unknown method to the
reference connection which has everything off. Only GET, HEAD, POST, PUT,
DELETE, OPTIONS, PATCH and QUERY are accepted, while TRACE, CONNECT (there
is no extended CONNECT in HTTP/1), unknown methods and methods differing
from PATCH or QUERY by their length get a 405 or a stream error.
reg-tests/http-messaging/http_hardening_h1.vtc
reg-tests/http-messaging/http_hardening_h2.vtc