in reply to open a socket and print from stdin....i think
(In my case I was sending $finaldata off to be md5 checksummed.)use LWP; my $finaldata; my $query_url = 'http://www.bla.com/'; sub get_pagesum { + my $ua = LWP::UserAgent->new( agent => 'http://mysite.com/'); + my $response = $ua->get("$query_url", + ':content_cb' => \&gen64, + ); + } + + sub gen64 { + my($data, $response, $protocol) = @_; + return $finaldata .= $data; + } # whatever you got off the last request # should now be contained in $finaldata
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open a socket and print from stdin....i think
by rvosa (Curate) on Oct 05, 2004 at 21:58 UTC | |
by hsinclai (Deacon) on Oct 05, 2004 at 23:38 UTC | |
by rvosa (Curate) on Oct 06, 2004 at 07:13 UTC | |
by stevenrh (Beadle) on Oct 06, 2004 at 13:36 UTC | |
by hsinclai (Deacon) on Oct 06, 2004 at 13:53 UTC |