Quote:
|
Originally Posted by FuqALot
try this
Code:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use CGI;
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$q = CGI->new();
$ua = LWP::UserAgent->new();
$req = POST 'http://maxmind.com:8010/b',
[l => "hgfjgfdhhh", i => "69.70.92.38" ];
$k = new CGI($ua->request($req)->content);
$region = $k->param( "region" );
$city = $k->param( "city" );
$country = $k->param( "country" );
print "Content-type: text/html\n\n";
print "$region\n";
exit;
|
Hi !
Thanks for your help.
I just tried the exact code here and it still doesn't work.
I still get an internal server error message.
I don't understand why " use CGI::Carp qw(fatalsToBrowser); " doesn't show anything to help...