Skip Menu |
 

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

Report information
The Basics
Id: 76988
Status: new
Priority: 0/
Queue: HTTP-Daemon

People
Owner: Nobody in particular
Requestors: vbuttazzo [...] yahoo.com
Cc:
AdminCc:

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



Subject: CONNECT with Content-Length hangs the proxy
Download (untitled) / with headers
text/plain 888b
If a client sends a CONNECT to HTTP::Proxy that includes a Content- Length header then the result is a hang of the proxy. It's obviously not a normal condition, but it happened on my configuration using PHP with cURL and the Google Api library. This library explicitly sets a Content-Length header for a POST request and cURL sends it in the CONNECT request to the proxy. I think it's a cURL wrong behavior, but it was much more easier to fix on the proxy side. The solution was simply to add this line: $len = $ct = $te = undef if $method eq "CONNECT"; after this code: my $te = $r->header('Transfer-Encoding'); my $ct = $r->header('Content-Type'); my $len = $r->header('Content-Length'); This way wrong headers are pretty ignored. I don't know if anyone else will ever have the same problem, I think it's not a common situation, anyway I like to report it.


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.