[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems with a tiny little module

Hi there,

I've downloaded the Module HTTP::CheckUser from CPAN, and try to use it, at
first, the way that is in the example. I received the following error

Can't locate object method "init_header" via package "HTTP::Headers" at
C:/Perl/lib/HTTP/Message.pm line 172.
The code I made is like this:#!/usr/bin/perl use CGI::Carp
qw(fatalsToBrowser);use CGI qw(escape);use LWP::Simple;use
HTTP::CheckProxy;print "Content-type: text/html\n\n";$ip
="";my $open_proxy_test = HTTP::CheckProxy->new($ip);print
"proxy test for $ip returns ".$open_proxy_test->code."\n";print
($open_proxy_test->guilty? "guilty" : "innocent");  What can be wrong? Kind
regards, Rui Miguel FernandesPorto - Portugal

Reply to: