Hello,

On Wed, 26 Mar 2025 at 16:32, haproxy <hapr...@arcict.com> wrote:

> My question(s):
>
> how can I capture the PHPSESSID in the HAProxy config?

You need to be in "mode http", otherwise you cannot access HTTP
headers or HTTP cookies, required to use session stickiness.



> maybe out of the scope of HAProxy: is there a way to use "mode http" with the 
> curl_setopt() php function?

curl_setopt() is just a PHP function to set curl options.

Are you just trying to say that you are using curl in php and it doesn't work?

Or are you trying to say you are using a special curl option (using
curl_setopt() ), and in this case it does not work?


Either way, you need to put haproxy in http mode and httplog mode and
provide more context when things fail in this configuration, including
haproxy http logs.


Lukas


Reply via email to