Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 47266
Status: resolved
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: jochen.wiedmann [...] gmail.com
Cc:
AdminCc:

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



Subject: SOAP::Lite produces invalid content-length header
The SOAP::Lite server, as used within the Bugzilla server produces an invalid content-length. The response headers look like this: HTTP/1.1 200 OK Date: Tue, 23 Jun 2009 08:43:03 GMT Server: Apache/2.2.11 (Fedora) SOAPServer: SOAP::Lite/Perl/0.710.08 Content-Length: 22226 Connection: close Content-Type: text/xml However, when saving the response using Wireshark, I can observe that the size of the response body is in fact 22235 bytes. SOAP::Lite should either create no Content-Length header (technically a violation of the XML-RPC specification, but should be fine for most clients), or a valid header. Note, that there is no need to create a content-length header from the HTTP perspective: My client identifies itself as HTTP/1.1, so chunky mode could be used. POST /bugzilla-3.3.4/xmlrpc.cgi HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host: 127.0.0.1 User-Agent: BZ::Client::XMLRPC 1 Content-Type: text/xml Cookie: Bugzilla_logincookie=BwwzfxwS9y; Bugzilla_login=1 Cookie2: $Version="1" Content-Length: 125
Closing, the problem seems to be with Bugzilla, which does magic things with the response. See https://bugzilla.mozilla.org/show_bug.cgi?id=486306