in reply to [SOLVED] Basic HTTP problems
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Basic HTTP problems
by Corion (Patriarch) on Feb 05, 2021 at 14:54 UTC | |
by Bolemo (Acolyte) on Feb 05, 2021 at 17:10 UTC | |
by Anonymous Monk on Feb 05, 2021 at 19:27 UTC | |
by Bolemo (Acolyte) on Feb 05, 2021 at 19:45 UTC | |
by Fletch (Bishop) on Feb 05, 2021 at 20:32 UTC |