in reply to POST request problem

Yeah , when you figure out what you really need, see one of these
HTTP::Request::StreamingUpload,
Re: PUT a Multipart request in PERL ( lwp-mechanize-put-multipart-form.pl ),
Re^2: POST'ing a large File with LWP::UserAgent,
Re^2: file download with connection problems,
HTTP::Request::StreamingUpload,