Re: get page with IO::Socket , but having trouble saving to file

2002-07-13 Thread drieux
On Saturday, July 13, 2002, at 08:06 , FLAHERTY, JIM-CONT wrote: [..] > unless ($remote) { die "cannot connect to http daemon on $host" } > > $remote->autoflush(1); [..] >print LOG9 " $remote \"GET $document HTTP/1.0\" . $BLANK"; > > while ( <$remote> ) { print LOG9 }

Re: get page with IO::Socket , but having trouble saving to file

2002-07-13 Thread Felix Geerinckx
on Sat, 13 Jul 2002 15:06:38 GMT, Jim-Cont Flaherty wrote: > Hello, get page with IO::Socket , but having trouble saving to file > > This is what I got: > [code snipped] > Help , what am I doing Wrong ?? You are trying to reinvent the wheel instead of using LWP::Simple.

get page with IO::Socket , but having trouble saving to file

2002-07-13 Thread FLAHERTY, JIM-CONT
Hello, get page with IO::Socket , but having trouble saving to file This is what I got: use IO::Socket; $host = "www.cnn.com"; $document = "/newhomepage1.htm"; foreach $doc ($document) { $remote = IO::Socket::INET->