Skip Menu |
 

This queue is for tickets about the HTTP-Parser CPAN distribution.

Report information
The Basics
Id: 14092
Status: resolved
Priority: 0/
Queue: HTTP-Parser

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: chunked encoding, missing extension support
Download (untitled) / with headers
text/plain 824b
the chunked header size can be followed by extensions. The parser expects an immediate CRLF after the hex digits. it should have provision to skip the extension. I also found that apache (for http:responses) in some cases add spaces, behind the hex digits. Would be nice to skip those too. from the RFC Chunked-Body = *chunk last-chunk trailer CRLF chunk = chunk-size [ chunk-extension ] CRLF chunk-data CRLF chunk-size = 1*HEX last-chunk = 1*("0") [ chunk-extension ] CRLF chunk-extension= *( ";" chunk-ext-name [ "=" chunk-ext-val ] ) chunk-ext-name = token chunk-ext-val = token | quoted-string chunk-data = chunk-size(OCTET) trailer = *(entity-header CRLF)
Download (untitled) / with headers
text/plain 256b
Fixed for 0.03 (I think); not sure what you mean by spaces "behind" the hex digits, but it will accept and ignore anything except CR/LF following the hex digits (formerly it took anything except LF, which wasn't correct as the usual RFC standard is CR LF).


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.