Sorry, I picked the wrong url. It actually was
http://www.tenovis.de/
cookies.txt
Set-Cookie3: SITESERVER="ID=914530f599a48893464f24c6e8f3a828"; path="";
domain=www.tenovis.de; version
("version" not "version=0")
But lwp-request -Sed <url> or lwp-request -x -d -e <url> does not reveal any cookie
headers.
This site seems to have stopped sending cookies, so the warning cannot be generated
again.
The warning appears when Cookies.pm accesses cookies.txt with this malformed
Set-Cookie3 entry.
Maybe this had something to do with the fact that serveral forked processes were
accessing
the same cookies.txt. Could it have become corrupted ?
BTW: is there any flock mechanism which allows serveral processes
to access the same cookies.txt simultanously ?
For completeness sake:
#!/usr/bin/perl -w
use LWP;
use HTTP::Cookies;
$url = "http://www.tenovis.de/";
$agent = "MyBot/0.1";
%header = (
'Accept' => 'text/*',
'From' => '[EMAIL PROTECTED]'
);
$hdrs = new HTTP::Headers(%header);
$req = new HTTP::Request("GET",$url,$hdrs);
$cjar = new HTTP::Cookies(file => "cookies.txt", autosave => 0, ignore_discard => 0 );
$ua = new LWP::UserAgent;
$ua->agent($agent);
$ua->cookie_jar($cjar);
$resp = $ua->request($req);
Uli
On 16 Oct 2003 at 0:35, Gisle Aas wrote:
> "Ulrich Borchers" <[EMAIL PROTECTED]> writes:
>
> > is this the right place to report a "bug" in HTTP::Cookies ?
>
> It sure is.
>
> > It is nothing serious. This particular page:
> >
> > http://www.hyperstone.com/
> >
> > seems to send a malformed cookie header without "version=\d".
>
> When I access this with 'lwp-request -Sed http://www.hyperstone.com/'
> I don't see any cookie related headers at all.
>
> Could you provide a complete script that generates these warnings.
>
> > Therefore $version in &add_cookie_header is unset and it prints this ugly messages
> > :)
> >
> > Use of uninitialized value in numeric gt (>) at
> > /usr/local/lib/perl5/site_perl/5.8.1/HTTP/Cookies.pm line 187.
> > Use of uninitialized value in numeric ge (>=) at
> > /usr/local/lib/perl5/site_perl/5.8.1/HTTP/Cookies.pm line 214.
> >
> > (HTTP::Cookies 1.31 - is this the latest version ?)
>
> It is actually 1.33, but I think it would have the same problem.
>
> Regards,
> Gisle
>
--
Dipl.-Inf. Ulrich Borchers
MEGABIT Informationstechnik GmbH
Karstr. 25, 41068 M�nchengladbach
Tel. +49 2161 30898-0