Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 37865
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

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



Subject: Naive live tests fail behind proxies
When running behind transparent proxies, a different set of headers is returned. As a result, the simple string match for the headers fails, resulting in the module failing to pass tests, falsely. main::(t\live\apache.t:39): $err++ unless $buf eq "TRACE /libwww-perl HTTP/1.1 main::(t\live\apache.t:40): Host: www.apache.org main::(t\live\apache.t:41): User-Agent: Mozilla/5.0 main::(t\live\apache.t:42): Accept-Language: no,en main::(t\live\apache.t:43): Accept: */* DB<8> x $buf 0 'TRACE /libwww-perl HTTP/1.0 Host: www.apache.org User-Agent: Mozilla/5.0 Accept-Language: no,en Accept: */* Via: 1.1 Colossus:3128 (squid/2.5.STABLE14) X-Forwarded-For: 10.10.31.235 Cache-Control: max-age=259200 Connection: keep-alive
As of LWP-5.814 we don't run any of the live tests by default. I hope that people that actually enable the tests should know to interpret the failures if they have proxies like this. That said, I don't mind applying patches to make the tests less strict in this regard.