develooper Front page | perl.libwww | Postings from March 2003

Bad Protocol 'tcp'

Thread Next
John Pesce
March 21, 2003 23:58
Bad Protocol 'tcp'
Message ID:
I'm attemping to use LWP from my ISP that uses CPanel 5.0 and virtual 

When I try to use any LWP functions they all fail with the error:

500 Can't connect to (Bad protocol 'tcp') 

I can use my simple test script from other hosted domains using CPanel 5.0

What does this mean? What is wrong with my ISPs server? He says he doesn't 
have a clue. reports:

Perl Executable: /usr/bin/perl 
Perl Version: 5.006001 
PERL compile version OS: linux 
GID: (If not blank, you are on a machine that supports membership in 
multiple groups simultaneously) 32160 
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin 
SHELL /usr/local/cpanel/bin/noshell  

My script is listed below:

#!/usr/bin/perl -w

use LWP::Simple;
use diagnostics -verbose;
#use Socket;
#use Sys::Hostname;

print "Content-type:text/html\n\n";
print "<HTML><HEAD>";

print "<TITLE>pagetitle</title>";
print "</head>";
print "<BODY>";

getprint ("");

print "</body></html>";

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About