in reply to [SOLVED] Basic HTTP problems

my $sid = $res->content;

Probably isn't the same as

sid = req.text[-32:]

Do some basic debugging to ensure you're sending the same thing. References:

Replies are listed 'Best First'.
Re^2: Basic HTTP problems
by Bolemo (Acolyte) on Feb 05, 2021 at 17:03 UTC
    Actually, you are right: there are 3 invisible control characters before the 32 sid string. So substring 32 is indeed different, However, that does not solve the issue...