02-21-2006, 04:21 PM
|
|
|
Confirmed User
Join Date: Jun 2003
Posts: 1,697
|
Quote:
|
Originally Posted by drjones
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;
|
Internal server error... 
|
|
|