Home : General : Internet Technologies :

General: Internet Technologies: Re: [Andy.] Linux & FreeBSD?: Edit Log

Here is the list of edits for this post
Re: [Andy.] Linux & FreeBSD?
Andy, check your inbox, I found a little hole in your contact form :) ....Agent Skully has been doing some secret service work Wink

Code:
#!/usr/bin/perl

use LWP::UserAgent;

my ($req,$ua,$res);

$ua = new LWP::UserAgent;
$ua->agent("AgentSkully/1.0 " . $ua->agent);

$req = new HTTP::Request POST => 'http://path_to_andys_script';
$req->content_type('application/x-www-form-urlencoded');
$req->content('action=send_quote');

for (1..1000) {
$res = $ua->request($req);
print $res->is_success ? "Sent $_\n" : "Bad luck this time\n";
}

Last edited by:

Paul: Apr 17, 2002, 7:19 AM

Edit Log: