Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [yogi] Getting a field as a variable...

Quote Reply
Re: [yogi] Getting a field as a variable... In reply to
Thanks Yogi..worked great (slight typo on line 3 of first example..missing $)....

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 Unsure

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!

Last edited by:

Andy: Jun 18, 2002, 6:42 AM
Subject Author Views Date
Thread; hot thread Getting a field as a variable... Andy 5647 Jun 18, 2002, 5:33 AM
Thread; hot thread Re: [Andy] Getting a field as a variable...
yogi 5502 Jun 18, 2002, 5:57 AM
Thread; hot thread Re: [yogi] Getting a field as a variable...
Andy 5500 Jun 18, 2002, 6:39 AM
Thread; hot thread Re: [Andy] Getting a field as a variable...
yogi 5508 Jun 18, 2002, 6:43 AM
Thread; hot thread Re: [yogi] Getting a field as a variable...
Andy 5517 Jun 18, 2002, 6:45 AM
Thread; hot thread Re: [Andy] Getting a field as a variable...
yogi 5512 Jun 18, 2002, 6:49 AM
Thread; hot thread Re: [yogi] Getting a field as a variable...
Andy 5494 Jun 18, 2002, 7:02 AM
Thread; hot thread Re: [Andy] Getting a field as a variable...
Paul 5542 Jun 18, 2002, 7:12 AM
Thread; hot thread Re: [Paul] Getting a field as a variable...
Andy 5571 Jun 18, 2002, 7:17 AM
Thread; hot thread Re: [Andy] Getting a field as a variable...
Paul 5440 Jun 18, 2002, 7:31 AM
Post; hot thread Re: [Paul] Getting a field as a variable...
Andy 5405 Jun 18, 2002, 7:34 AM