It is often the case on many servers that the
response to an initial request not only redirects to
another page, but that it also sends cookies that
should be presented to the new redirection page.
The current "libwww" does not function correctly with
respects to these cases, and does not present the new
cookies, and even worse, the latest versions now
remove any cookie headers. It is thus not functioning
correctly in accordance with both HTTP nor Cookie
handling.
I'm afraid I don't know exactly were to correct the
code for this to work as I am not a very good Perl
Programmer. Would the people involved please correct
this in futtur versions.
PS! You should also consider redirections back to the
same page. A means by which many sites use to force a
cookie update.
Logged In: NO
The following works for me:
In UserAgent.pm::request after this line:
$referral->remove_header('Host', 'Cookie');
add this line:
$self->cookie_jar->add_cookie_header($referral)
if defined($self>cookie_jar);