为什么 haproxy 无法捕获我的 cookie?

发布于 2024-07-14 08:25:24 字数 273 浏览 4 评论 0原文

我在让前端 cookie 捕获在 haproxy 中工作时遇到问题。 我的配置中有这个:

frontend frontend 0.0.0.0:9999
[snip]
capture cookie foo len 10

然后我使用 nc 直接与服务器对话并发送它:

GET / HTTP/1.1
Cookie: foo=bar

我得到一条日志行,但捕获的 cookie 应该在哪里有一个“-”。

I'm having trouble getting frontend cookie capture to work in haproxy. I have this in my config:

frontend frontend 0.0.0.0:9999
[snip]
capture cookie foo len 10

Then I use nc to talk directly to the server and send it:

GET / HTTP/1.1
Cookie: foo=bar

I get a log line, but there's a "-" where the captured cookie should be.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乱世争霸 2024-07-21 08:25:24

您使用的是版本 1.3.15.2,但存在一个 cookie 捕获错误,直到 1.3.15.6 才修复。

You're using version 1.3.15.2, but there's a cookie capture bug that wasn't fixed until 1.3.15.6.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文