The sid returned is a 32 characters long string. I believe that Python might add a prefix so the programmer made sure only the returned 32 chars are taken. Anyway, with or without substring in Perl, the sid string is exactly the same (len of 32), and the result is the same. The issue is not there.
$res->code is 200 for each request. There is no HTTP error.
With the Python script, the server is sending the right information.
With the Perl script, the server is acting like it is not authenticated.
The problem seems to rely more on what an how $ua->post is actually sending the data. The tcpdump shows it is different, where it should be the same.
Also, maybe each request is not considered in the same HTTP session in Perl?
In reply to Re: Basic HTTP problems
by Bolemo
in thread [SOLVED] Basic HTTP problems
by Bolemo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |