Hi Mark,
 
Here is the page I'm getting.
I'm logged in but I'm getting redirected.
How do you handle such a case?
 
I have tried
 
  print $mech->content();
 
  sleep (5); 
  $mech->get( "http://www.governmentsecurity.org/forum/index.php?act=Search&CODE=getnew" ); 
 
But it did not work.
 
Thanks,
 
-Jim-
.....
</style>
 </head>
 <body>
  <div id="redirectwrap">
   <h4>Thanks</h4>
   <p>You are now logged in as: jzaba<br /><br />Please wait while we transfer you...</p>
   <p class="redirectfoot">(<a href="">Or'>http://www.governmentsecurity.org/forum/index.php?">Or click here if you do not wish to wait</a>)</p>
  </div>
 </body>
</html>

"Thomas, Mark - BLS CTR" <[EMAIL PROTECTED]> wrote:
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-




Start your day with Yahoo! - make it your home page
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to