]> git.kaiwu.me - haproxy.git/commit
MINOR: haload: always track and resend cookies per user
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 26 Aug 2026 08:43:27 +0000 (10:43 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 26 Aug 2026 16:16:35 +0000 (18:16 +0200)
commit695309acee64f914d743a4bada8c0076cf34657f
tree750b361bd32a39cbaf65813468be326094015a37
parent76da364d75ab5830d69dfba16a049d2c89934230
MINOR: haload: always track and resend cookies per user

Capture every Set-Cookie header from a response, and send them back
as a Cookie header on that user's later requests. This is always on,
not behind an option: haload should behave like a real client here.

Cookies are kept per user, not per URL: they stay across a
reconnect, and are shared between the URLs that user hits, the same
way a real browser would.

http_extract_cookie_value() (src/http.c) is reused to parse the value
part (it already handles quotes and spaces correctly); only finding
the name comes first, since that function needs the name to already
be known.
src/haload.c