[EMAIL PROTECTED] wrote:

> Hi there,
> 
> still no idea of how to solve the problem (tried to read through the lwp manpage and 
> lwp cookbook):
> 
> I have a website that displays a login (username, password) prompt where you have to 
> enter the data and click on a button. 
> Then select a menu to get a new page (full with java-script commands an cookies) 
> that 
> shows a form where I would like to fill out somewhat like 20 "fileds" with data that 
> is in 
> the clipboard (pretty easy parse"able") and then click on a "submit" button.
> 
> So, the question is: should I use perl as a keyboard-macro-tool that just "hits" the 
> keys in 
> the explorer-window as I would manually (would that be done with OLE like the Win32-
> Excel-examples)?
> 
> As I understand the other option is to setup a "UserAgent", but therefore I cannot 
> find 
> any "examples" that show how to work with all that Cookie-Javascript-password stuff.
> 
> I think there must be lots of similar problems and solutions out there, so I'd be 
> glad to 
> find some......

I would use WWW:Mechanize and repost when you get in trouble.
Some code would help us to get you over the next hump.

my $url = 'http://www.whatever.com/';
my $cookiefile = 'cookies.txt';

my $cookie_jar = HTTP::Cookies->new(File => $cookiefile, autosave => 1);

my $Mech = new WWW::Mechanize;
$Mech->cookie_jar($cookie_jar);
$Mech->agent('Mozilla/4.0');

my $res = $Mech->get($url);
...

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to