Re: Bug in cookies in libwww-perl-5.803

John J Lee <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <Pine.WNT.4.58.0507311602380.1636@vernon>
On Thu, 28 Jul 2005, Mysql user wrote:

> I'm trying to write a perl program to access the configuration of a VOIP
> telephone through its web interface. The web interface assigns you a
> session id cookie once you've logged in. It works with browsers but not
> with libwww-perl5.803 as shipped with Fedora Core 4.
>
> Here is the set-cookie header:
> Set-Cookie: SessionId="ab6931f2c09b05c9"; Version=1; Path=/
>
>
> Here is the correct cookie being sent (by Firefox):
> Cookie: SessionId="bf754500cc94652f"
>
> Here is the cookie being sent by LWP:
> Cookie: $Version=1; SessionId="\"ab6931f2c09b05c9\""; $Path="/"
[...]

Have you tried turning off RFC 2965 handling?

Even then, perhaps Version 1 cookies won't be downgraded to V0 cookies,
I don't recall.  But try it and see.


John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.