Skip Menu |

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

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

Owner: Nobody in particular
Requestors: BESSARABV [...]
Cc: ivan [...]

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

CC: ivan [...]
Subject: When getting page with LWP 2 dots in url is not working as expected
Download (untitled) / with headers
text/plain 699b
I'm using LWP to get page content. Sometimes I have the link that has two dots in it. E.g. "". When I enter this link in address bar in any browser I see the desired page "". But when I try to get that page with LWP I get 404 error, because it does not parse url before sending it to the server. Here is a code showing this problem: {{{ #! /usr/bin/perl use strict; use warnings; use LWP; my $link = ''; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(GET => "$link"); my $response = $ua->request($req); $response->content =~ /<title>(.*)<\/title>/; print "$1"; }}}

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

Please report any issues with to