View Single Post
Old 02-21-2006, 03:15 PM  
drjones
Confirmed User
 
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
Should be:


#############################

#!/usr/bin/perl -wT
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use diagnostics;
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;

my $q = CGI->new();
my $ua = LWP::UserAgent->new();

my $req = POST 'http://maxmind.com:8010/b',
[l => "hgfdgghhh", i => "69.70.92.38" ];

my $k = new CGI($ua->request($req)->content);

my $region = $k->param( "region" );
my $city = $k->param( "city" );
my $country = $k->param( "country" );

print "Content-type: text/html\n\n";
print "$region\n";
exit;
drjones is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote