Skip Menu |

This queue is for tickets about the POE-Component-Client-HTTP CPAN distribution.

Report information
The Basics
Id: 14679
Status: resolved
Priority: 0/
Queue: POE-Component-Client-HTTP

People
Owner: RCAPUTO [...] cpan.org
Requestors: hzheng [...] yahoo-inc.com
Cc:
AdminCc:

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



Subject: HEAD request always fails if 3xx response contains non-zero Content-Length
If the server returns 302 with a non-zero Content-Length, PoCo::Client::HTTP::Request::add_eof always overwrite the return code with "400 incomplete response." Looks like it should special case HEAD command to ignore $self->[REQ_RESPONSE]->content_length. To repro: do $kernel->post('ua', 'request', 'response', HTTP::Request->new('HEAD', 'http://google.com')); and stop in PoCo::Client::HTTP::Request::add_eof line 209. I tried 0.7002 and 0.72. Thanks.
On Tue Sep 20 20:28:00 2005, guest wrote: Show quoted text
> If the server returns 302 with a non-zero Content-Length, > PoCo::Client::HTTP::Request::add_eof always overwrite the return > code with "400 incomplete response." Looks like it should special > case HEAD command to ignore $self->[REQ_RESPONSE]->content_length. > > To repro: do > $kernel->post('ua', 'request', 'response', > HTTP::Request->new('HEAD', 'http://google.com')); > and stop in PoCo::Client::HTTP::Request::add_eof line 209. > > I tried 0.7002 and 0.72. > > Thanks.
I've added a test case that duplicates this problem. It will be fixed before the next release, 0.74.