libwww-perl / libwww-perl/Net-HTTP
read_entity_body() should warn() if Content-Length is less than the size of the payload.
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 20
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
https://tools.ietf.org/html/rfc2616#page-34
The last paragraph of RFC 2616/4.4 stipulates that a notification (warn() in Perl, ISTM) should be given when the payload length doesn’t match the Content-Length header.
Right now there’s no such warn() happening … maybe do a recv()/MSG_PEEK to see if there is more to read on the socket, then warn() if so?
Contributor guide
No contributing guide indexed for this repository
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 locating read_entity_body() and reviewing how it compares the payload with the Content-Length header. Read RFC 2616 section 4.4 and inspect the socket-reading behavior before deciding how a mismatch can be detected. Done means the specified warning is emitted when the payload length is inconsistent with Content-Length, without changing normal reads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100