libwww-perl / libwww-perl/HTTP-Message
PUT should handle files like POST [rt.cpan.org #65843]
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 32
- Forks
- 63
- Avg merge
- 5h 14m
- Merged PRs (30d)
- 1
Description
Migrated from rt.cpan.org#65843 (status was 'open')
Requestors:
- RIZEN@cpan.org
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing HTTP::Request::Common::POST with the put() method, focusing on how each handles file uploads. Implement equivalent file-posting behavior for PUT without requiring callers to change a POST request's method, then verify that a PUT request can be built with an uploaded file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100