Subject: | LWP::UserAgent + HTTP::Request: could it be a $content_file never gets uploaded? |
Doing
my $file = '/tmp/test.file';
my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new('PUT' => 'http://www.example.com/test.file');
# syntax in docs: $ua->request( $request, $content_file )
my $res = $ua->request($req, $file);
at least in my script never resulted in a file being uploaded or the
content of the request being bigger than 0.
Dumper($res) *snipped*;
'_request' => bless( {
'_content' => '',