Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 63551
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: asnyder [...] ariasystems.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: LWP/Protocol/http.pm should use bytes
Date: Thu, 02 Dec 2010 16:27:34 -0500
To: bug-libwww-perl [...] rt.cpan.org
From: Andrew Snyder <asnyder [...] ariasystems.com>
http requests are calculating the wrong content length for utf8 strings. adding "use bytes;" to LWP::Protocol::http::request fixes this problem. perl 5.8.8 and later (tested on perl v5.10.1)
The "contract" is that the content of a HTTP::Message object should be bytes. You are not supposed to be able to pass in a HTTP::Request where the content isn't representable as bytes. What do you do to bypass these checks?
Subject: Re: [rt.cpan.org #63551] LWP/Protocol/http.pm should use bytes
Date: Thu, 02 Dec 2010 17:04:21 -0500
To: "bug-libwww-perl [...] rt.cpan.org" <bug-libwww-perl [...] rt.cpan.org>
From: Andrew Snyder <asnyder [...] ariasystems.com>
On 12/02/2010 04:56 PM, Gisle_Aas via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=63551> > > The "contract" is that the content of a HTTP::Message object should be bytes. > > You are not supposed to be able to pass in a HTTP::Request where the content isn't > representable as bytes. What do you do to bypass these checks? > > > >
I send an XML request that happens to have multibyte characters.