#!/usr/bin/perl -w
use strict;
use LWP;
for (1..10) #Loop 10 times.. testing
{
my $browser = LWP::UserAgent->new; #Instantiate
my $response = $browser->post('http://www.host.com/cgi-bin/script.pl',
['session'=>'vTLHmbtajJjmyjVBjzFEQuSKoLQQijDo', #Field 1
'attach'=>["local_filename"=>"remote_filename"], #File to upload, attach is a field of type file
],
'Content_Type'=>'form-data' #Needed for multiparts
);
#print $response->content; #Print the returned page
print "Loop $_\n";
}
CGI Caching is evil!! 0 Comments More | Login | Reply /