Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: benoit.peccatte [...] enst-bretagne.fr
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=
X-Mailer: Evolution 2.22.3.1
X-Me-Uuid: 20081215192441204.31D831C00099 [...] mwinf2028.orange.fr
Message-ID: <1229369079.4422.7.camel [...] peck.enstb.com>
content-type: text/plain; charset="utf-8"
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id BCF214D8016 for <bug-libwww-perl [...] rt.cpan.org>; Mon, 15 Dec 2008 14:25:22 -0500 (EST)
Received: (qmail 17016 invoked by uid 103); 15 Dec 2008 19:25:22 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 15 Dec 2008 19:25:22 -0000
Received: from smtp20.orange.fr (HELO smtp20.orange.fr) (80.12.242.26) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Dec 2008 11:24:45 -0800
Received: from [192.168.1.17] (APuteaux-152-1-88-140.w86-205.abo.wanadoo.fr [86.205.85.140]) by mwinf2028.orange.fr (SMTP Server) with ESMTP id 31D831C00099 for <bug-libwww-perl [...] rt.cpan.org>; Mon, 15 Dec 2008 20:24:40 +0100 (CET)
Delivered-To: cpan-bug+libwww-perl [...] diesel.bestpractical.com
Subject: [BUG] lwp ftp head
Return-Path: <benoit.peccatte [...] enst-bretagne.fr>
X-Original-To: bug-libwww-perl [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Mon, 15 Dec 2008 20:24:39 +0100
X-Spam-Level: *
To: bug-libwww-perl [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Benoit Peccatte <benoit.peccatte [...] enst-bretagne.fr>
X-RT-Original-Encoding: ascii
Content-Length: 1572
Download (untitled) / with headers
text/plain 1.5k
Hi, I've got a problem with the following code : --------------------------------------------------------------- #!/usr/bin/perl use LWP::UserAgent; use LWP::Simple; use Data::Dumper; my $lwp = LWP::UserAgent->new(); #my $url = "ftp://193.166.3.2//pub/linux/mirrors/debian//project/trace/ftp-master.debian.org"; my $url = "ftp://ftp.us.debian.org/debian//project/trace/ftp-master.debian.org"; my $req = HTTP::Request->new(HEAD => $url); my $data = $lwp->request($req); print Dumper($data); --------------------------------------------------------------- Using the first url, it returns an error 500, using the second, it returns a code 200. Both files are retrievable via wget and both ftp server work correctly. Here is a tcp stream dump of what happens : --------------------------------------------------------------- ... 250 OK. Current directory is /pub/Linux CWD mirrors 250 OK. Current directory is /pub/Linux/mirrors CWD debian 250 OK. Current directory is /.m/mirrors8/ftp.debian.org/debian CWD project 250 OK. Current directory is /.m/mirrors8/ftp.debian.org/debian/project CWD trace 250 OK. Current directory is /.m/mirrors8/ftp.debian.org/debian/project/trace MDTM ftp-master.debian.org 213 20081214090001 PORT 10,0,0,3,135,50 200 PORT command successful RETR ftp-master.debian.org 150 Connecting to port 34610 226-File successfully transferred 226 0.001 seconds (measured here), 94.26 Kbytes per second ....ABOR 500 ? 500 Logout. --------------------------------------------------------------- I think the ABOR is too slow and shouldn't be done.
X-RT-Interface: REST
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
RT-Message-ID: <rt-4.0.18-2731-1490917989-1784.41729-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 82


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.