Thanks Yogi..worked great (slight typo on line 3 of first example..missing $)....
The problem I am having now is with;
my $sock = GT::Socket->open({
'host' => $url,
'port' => 80
});
$sock->write( "GET / HTTP/1.0\n\n" );
print "REQUEST RETURNED:\n\n", $sock->gulpread(-1);
For some reason $url is not being passed along. Should it be in ""'s?
EDIT: I tried it with '' and "", and nothing again..but none of them worked. I printed out the value of $url, and that has a value for it
The error I am getting is;
>>>Can't call method "write" on an undefined value at /home/ace-clipart.com/public_html/directory/cgi/safe_jump.cgi line 51.<<<
Thanks
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
The problem I am having now is with;
Code:
# now connect to the URL..to see what we get... my $sock = GT::Socket->open({
'host' => $url,
'port' => 80
});
$sock->write( "GET / HTTP/1.0\n\n" );
print "REQUEST RETURNED:\n\n", $sock->gulpread(-1);
For some reason $url is not being passed along. Should it be in ""'s?
EDIT: I tried it with '' and "", and nothing again..but none of them worked. I printed out the value of $url, and that has a value for it
The error I am getting is;
>>>Can't call method "write" on an undefined value at /home/ace-clipart.com/public_html/directory/cgi/safe_jump.cgi line 51.<<<
Thanks
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!