I have tried your code ferat still not working,
the site is contacted ok but all I get back is a blank reply in the verbose.
sub cyborgify {
my ($cyber) = @_;
my ($remote,$port,$proto,$paddr,$headers,$nl,$crlf,$stuff,@status);
$remote = "
www.cyborgname.com";
$url = "/cyborger.cgi?acronym=$cyber";
$port = "80";
$iaddr = inet_aton($remote) or return "$remote: Domain is not resolvable.";
$paddr = sockaddr_in($port,$iaddr);
$proto = getprotobyname('tcp');
socket (SOCKCHECK,PF_INET,SOCK_STREAM,$proto) or die "socket: $!";
connect (SOCKCHECK, $paddr) or return "connect: $!";
$nl = chr(10);
$crlf = chr(13).chr(10);
undef $headers;
$headers .= "User-Agent: BitchBOT IRC Web Client$crlf";
$headers .= "Host: ${remote}:${port}$crlf";
$headers .= "Connection: Close$crlf";
send (SOCKCHECK,"GET $url HTTP/1.1\013\010$headers" . $nl . $nl,0);
while ($line = <SOCKCHECK>) {
if (index(lc($line),lc("<P CLASS=\"mediumheader\">")) != -1) {
$func = substr($line,27);
$func = substr($func,0,index(lc($func),lc("</p>")));
last;
}
}
close (SOCKCHECK);
return $func;
}