I am using the following perl code (ick!):
#!/usr/bin/perl --
print "Content-type: text/html\n\n";
Create a user agent object
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->agent("AgentName/0.1 " . $ua->agent);
Create a request
$query = '2222222dsddsdsd';
$get = 'http://izoox.splashingmedia.com/paypal.php?query=';
$get .= $query;
my $req = new HTTP::Request POST => $get;
$req->content_type('application/x-www-form-urlencoded');
$req->content('match=www&errors=0');
Pass request to the user agent and get a response back
my $res = $ua->request($req);
Check the outcome of the response
if ($res->is_success) {
print $res->content;
} else {
print "Bad luck this time\n";
}
It correctly post the varible to the below php script, reads it back , but for some reason mail isnt working at all.............
<?
$email = 'itzcraze@aol.com';
mail("$email", "blahvlavhhdsa","gjghghhjhj","From: webmaster@Fsdf.com\nReply-To: webmaster@Frdfs.com\nX-Mailer: Freesfd.com/");
echo"$query";
?>
this is very wierd.. requesting the script manually werks though.