Thu Dec 02 16:28:22 2010asnyder [...] ariasystems.com - Ticket created
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)
Thu Dec 02 16:56:55 2010GAAS [...] cpan.org - Correspondence added
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?
Thu Dec 02 16:56:56 2010The RT System itself - Status changed from 'new' to 'open'
Thu Dec 02 17:04:55 2010asnyder [...] ariasystems.com - Correspondence added
Subject:
Re: [rt.cpan.org #63551] LWP/Protocol/http.pm should use bytes
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.
Fri Mar 31 15:02:14 2017olaf [...] wundersolutions.com - Correspondence added