libwww-perl / HTTP-Message

The HTTP-Message distribution contains classes useful for representing the messages passed in HTTP style communication.

Home Page:https://metacpan.org/pod/HTTP::Message

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PUT should handle files like POST [rt.cpan.org #65843]

oalders opened this issue · comments

Migrated from rt.cpan.org#65843 (status was 'open')

Requestors:

From rizen@cpan.org on 2011-02-17 16:38:34:

This isn't a bug so much as a minor feature request. HTTP::Request::Common::POST handles file 
posting, but with RESTFUL web services you need to be able to do the same thing on a PUT. 
Right now this is achievable by simply doing:

my $req = POST ...;
$req->method('PUT');

But it's kind of hackish. 

From augie.schwer@gmail.com on 2013-02-23 00:03:55:

Me too; the put() method was totally throwing me for a loop before I 
found this bug report.