>>>>> "w" == wassup <> writes:
w> this one doesnt seem to output any erros, but i still cant use the
w> page... what is wrong here?
w> #!/usr/bin/perl
w> use strict;
w> use warnings;
w> use WWW::Mechanize;
w> use HTTP::Cookies;
w> my $cookie_jar = HTTP::Cookies::Netscape->new(file => "/root/.netscape/
w> navigator/bbj1xsox.default/cookies.txt",autosave => 1,);
w> my $m = WWW::Mechanize->new( cookie_jar=> $cookie_jar);
w> $m->get("http://www.whateverpage.com/test.php");
it is likely that you need the cookie that comes from logging in to the
page itself. if you use an old cookie from a previous login it may not
work because the site timed out the session. so you have to login fresh
with the user/password in the auth part of the request.
uri
--
Uri Guttman ------
--------
http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ----
http://bestfriendscocoa.com ---------