Greetings,

I am trying to log into a site which uses cookies. But when i do it tells me
that my browser is not configured to use Cookies, and fails.

Am i using them properly here ?

(The site, and CGI args have been changed obviously)
-Lenny


#!/usr/bin/perl

use HTTP::Request::Common qw(POST GET);
use LWP::UserAgent;
use HTTP::Cookies;

use LWP::Debug qw(+);


my $CookieJar = HTTP::Cookies->new(file=>"./cookies.dat", autosave => 1);
my $Browser = new LWP::UserAgent;


$Browser->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; DigExt)');
$Browser->cookie_jar($CookieJar);


my $request = POST "https://www.SOMESITE.org/cgi-bin/Login.cgi";,
  [
   runmode    => "SIGN_IN",
   usernumber => "USERNAME",
   password   => "PASSWORD",
  ];


print $Browser->request($request)->as_string;




_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to