libwww-perl / libwww-perl/HTTP-Message

HTTP::Request::Common::POST should accept content as a scalar ref [rt.cpan.org #58925]

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

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#58925 (status was 'new')

Requestors:

  • justincase@yopmail.com

From justincase@yopmail.com on 2010-06-29 04:07:02:

If posting a large piece of content, it would be good to pass it as a
reference to the content. Currently one can not do this:
$useragent->post(
    $uri, Content => \ $blob_of_xml, Content_Type => 'text/xml'
);

The only way I can see is to manually construct an HTTP::Request object.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating HTTP::Request::Common::POST and inspect how its Content argument is handled. Verify the existing behavior and determine how scalar references should be accepted for large POST bodies; done means POST can receive the referenced content with Content_Type preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.