Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

web request post


  • Please log in to reply
No replies to this topic

#1 martin2311

martin2311

    CC Regular

  • Just Joined
  • PipPipPip
  • 32 posts

Posted 11 August 2011 - 11:25 AM

Guys i want to use perl to post in a login form and check if the login is valid or not please help m using fowlloing code


use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;

my $req = POST 'https://login.yahoo.com/config/login_verify2?&.src=ym',
[ username => 'email@address.com', passwd =>'*********'];


print $ua->request($req)->as_string;


i want to match the content with keyword like if after posting login info to website i get "Inbox" shown in the content the the script says logged in or else says failed

any help
  • 0