in reply to Re^2: POST'ing a large File with LWP::UserAgent
in thread POST'ing a large File with LWP::UserAgent
Thanks for the feed back. Hi can you explain what the below code actually do
# set up callback { my $gen = $req->content(); die unless ref($gen) eq "CODE"; my $i = 0; $req->content( sub { my $chunk = &$gen(); # get chunk of data warn $i++; return $chunk; # send it to $url } );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: POST'ing a large File with LWP::UserAgent
by Anonymous Monk on Nov 30, 2011 at 08:32 UTC |
In Section
Seekers of Perl Wisdom