Jim,

When you're using forms-based authentication rather than basic
authentication, it's generally easier to use Mechanize. Mechanize handles
cookies automatically.

  use WWW::Mechanize;
  my $mech = WWW::Mechanize->new();
  $mech->get($url);
  $mech->submit_form(
      fields => {
                 UserName => 'XXX',
                 PassWord => 'XXX',
                }
  );
  print $mech->content();

--
Mark.

----------------------Original Message---------------------------

                I have some issues with POST 
                I need to create spider for this URL.
        
http://www.governmentsecurity.org/forum/index.php?act=Login&CODE=00
                Get is OK and I'm getting the loggin page
                I did POST but I'm not logged in. 
                Probably I'm not using cookies the correct way.
                Thanks for help.

                -Jim-

                 

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to