Advertisement
Guest User

Untitled

a guest
Mar 19th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5. use LWP::UserAgent;
  6. use HTTP::Cookies;
  7. use HTTP::Request::Common;
  8. my $ua = LWP::UserAgent->new(agent => 'Opera/9.80');
  9. my $cookie_jar = HTTP::Cookies->new;
  10.  
  11. $ua->get('http://site/script')->content;
  12. my $request = HTTP::Request->new();
  13. $request=$ua->request(POST 'http://site.ru/script',
  14.  
  15. Content_Type => 'multipart/form-data',
  16. Content => [
  17. 'id' => "a812a878",
  18. 'DO' => '1',
  19. 'A' => '0',
  20. 'B' => '0',])->as_string;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement