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

Owner: Nobody in particular
Requestors: adamk [...]

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

Subject: Naive live tests fail behind proxies
Download (untitled) / with headers
text/plain 749b
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: 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: User-Agent: Mozilla/5.0 Accept-Language: no,en Accept: */* Via: 1.1 Colossus:3128 (squid/2.5.STABLE14) X-Forwarded-For: Cache-Control: max-age=259200 Connection: keep-alive
Download (untitled) / with headers
text/plain 271b
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.

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

Please report any issues with to