Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LPW and HTTP cookie jar problem

0 views
Skip to first unread message

Tim Willans

unread,
Dec 18, 2002, 6:59:05 PM12/18/02
to
I am using LWP::UserAgent and HTTP::Cookies::Netscape to try to access
cookies stored in a mozilla cookies.txt file on a Red Hat v8.0 system.

However, I am getting the following error message:

/root/.mozilla/default/75qdae8t.slt/cookies.txt does not look like a
netscape cookies file at usr/lib/perl5/vendor_perl/5.8.0/HTTP/Cookies.pm
line 746, <FILE> line 1.

The header lines of the cookies.txt file are:

# HTTP Cookie File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This is a generated file! Do not edit.
# To delete cookies, use the Cookie Manager.

and are followed by a list of cookies.

Does anyone have an idea what I am doing wrong?

Thanks

Tim

Harald H.-J. Bongartz

unread,
Dec 19, 2002, 2:00:30 PM12/19/02
to
Tim Willans wrote:
> I am using LWP::UserAgent and HTTP::Cookies::Netscape to try to access
> cookies stored in a mozilla cookies.txt file on a Red Hat v8.0 system.

If it's a Mozilla cookie file, you should use HTTP::Cookies::Mozilla.[1]

> However, I am getting the following error message:
>
> /root/.mozilla/default/75qdae8t.slt/cookies.txt does not look like a
> netscape cookies file at
> usr/lib/perl5/vendor_perl/5.8.0/HTTP/Cookies.pm line 746, <FILE> line
> 1.
>
> The header lines of the cookies.txt file are:
>
> # HTTP Cookie File

And a Netscape cookie file starts with
# Netscape HTTP Cookie File

HTTP::Cookies::Netscape looks for that magic line.

Ciao,
Harald

[1]
http://search.cpan.org/author/BDFOY/HTTP-Cookies-Mozilla-1.03/lib/Mozilla.pm
--
Harald H.-J. Bongartz <bon...@gmx.net>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
++$sheep while !$asleep;


Tim Willans

unread,
Dec 20, 2002, 2:26:41 AM12/20/02
to
Harald H.-J. Bongartz wrote:
> Tim Willans wrote:
>
>>I am using LWP::UserAgent and HTTP::Cookies::Netscape to try to access
>>cookies stored in a mozilla cookies.txt file on a Red Hat v8.0 system.
>
>
> If it's a Mozilla cookie file, you should use HTTP::Cookies::Mozilla.[1]
>
>
>>However, I am getting the following error message:
>>
>>/root/.mozilla/default/75qdae8t.slt/cookies.txt does not look like a
>>netscape cookies file at
>>usr/lib/perl5/vendor_perl/5.8.0/HTTP/Cookies.pm line 746, <FILE> line
>>1.
>>
>>The header lines of the cookies.txt file are:
>>
>># HTTP Cookie File
>
>
> And a Netscape cookie file starts with
> # Netscape HTTP Cookie File
>
> HTTP::Cookies::Netscape looks for that magic line.
>
> Ciao,
> Harald
>
> [1]
> http://search.cpan.org/author/BDFOY/HTTP-Cookies-Mozilla-1.03/lib/Mozilla.pm

Harald,

Thanks very much. I will give it a try.

Tim

0 new messages