Skip Menu |

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

Report information
The Basics
Id: 11717
Status: rejected
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

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



Subject: Recursive redirection error
I've encountered a redirection error that I cannot solve. The following command will print a dump of the $res object after it maxes out at 7 redirect requests: perl -MData::Dumper -MLWP::UserAgent -le "\$ua = LWP::UserAgent->new; \$url = 'https://members.guildquality.com/components/external/index.jsp?group=external&report=customer&load=1&builder_id=35195&eid=101fd0d5a40.531647cb&rid=2710'; \$res = \$ua->get(\$url); print Dumper(\$res);" Looking at the location values, you'll see that libwww is getting into a recursive redirect. Upping the max_redirects to 25 does not fix the problem as libwww continues to loop. I am able to successfully fetch this page via Firefox and wget. If I can provide any further details, let me know. Thanks, William
The reason might be that server redirects to itself unless cookies are provided. Try to enable the $ua->cookie_jar.