"BAZLEY, Sebastian" <[EMAIL PROTECTED]> writes:
> Is it possible to upload a large file using LWP methods?
Should be.
> I have tried HTTP::Request->new( 'PUT', ftp://host/file, undef, $content),
> and that works OK for small files.
>
> However, when I try a large file, somewhere between 37,000 and 80,000 bytes
> LWP appears to loop doing IO. Note: the $content variable contains the
> entire file contents, which is a ZIP file (as it happens).
>
> This is on VMS 7.2 running LWP 5.41, Perl 5.005_2.
The $data->write() calls inside the PUT section of LWP::Protocol::ftp
should probably loop if $data->write() returns less than expected
number of bytes. Do you want to try to provide a patch?
Regards,
Gisle